Skip to content

RemitaNet/remita-inline-sdk-rrr-flutter

Repository files navigation

Remita Flutter Inline Payment



Overview

Remita Flutter Inline Payment is a Remita package that helps you accept payment in your flutter application.

Installation

  1. Add the dependency to your project. In your pubspec.yaml file add: remita_flutter_inline: 1.0.3
  2. Run flutter pub get

Requirements

  1. Remita API Keys
  2. Supported Flutter version >= 1.17.0

Usage

Initializing a RemitaPayment instance

To create an instance, you should call the RemitaInlinePayment constructor with the following as parameters:

  • BuildContext
  • PaymentRequest
  • Customizer

It returns an instance of RemitaInlinePayment with this instance, we then call the async method .initiatePayment().

_handlePayment() async { 

    PaymentRequest request = PaymentRequest(
        environment: RemitaEnvironment.demo,
        rrr: 'pass your rrr here',
        key: 'enter your key here',
    );

    RemitaPayment remita = RemitaInlinePayment(
        buildContext: context,
        paymentRequest: request,
        customizer: Customizer(),
    );

    PaymentResponse response = await remita.initiatePayment();
}

Handling the response

Calling .initiatePayment() method returns a Future of PaymentResponse.

PaymentResponse response = await remita.initiatePayment();
if (response.code != null && response.code == '00') {
  // transaction successful
  // verify transaction status before providing value
} else {
  
}

TEST CARDS

    CARD: 5178 6810 0000 0002,  
    Expire Date : 05/30,  
    CCV: 000, 
    OTP: 123456

Contributing

  • To contribute to this repo, follow these guidelines for creating issues, proposing new features, and submitting pull requests:

Fork the repository.

  1. Create a new branch: git checkout -b "feature-name"
  2. Make your changes and commit: git commit -m "added some new features"
  3. Push your changes: git push origin feature-name
  4. Submit a Pull Request (PR).

Useful links

  • Join our Slack Developer/Support channel

Support

License

By contributing to the Flutter library, you agree that your contributions will be licensed under its MIT license.

Built Using

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages