Remita Flutter Inline Payment is a Remita package that helps you accept payment in your flutter application.
- Add the dependency to your project. In your
pubspec.yaml
file add:remita_flutter_inline: 1.0.3
- Run
flutter pub get
- Remita API Keys
- Supported Flutter version >= 1.17.0
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();
}
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 {
}
CARD: 5178 6810 0000 0002,
Expire Date : 05/30,
CCV: 000,
OTP: 123456
- To contribute to this repo, follow these guidelines for creating issues, proposing new features, and submitting pull requests:
Fork the repository.
- Create a new branch:
git checkout -b "feature-name"
- Make your changes and commit:
git commit -m "added some new features"
- Push your changes:
git push origin feature-name
- Submit a Pull Request (PR).
- Join our Slack Developer/Support channel
- For all other support needs, support@remita.net
By contributing to the Flutter library, you agree that your contributions will be licensed under its MIT license.