ImePay plugin for Fluter
Flutter plugin to integrate ImePay in your app.
How to install
-
Add ime_pay in your
pubspec.yamldependencies: ime_pay:
Usage
-
Create
ImePayobject with the required parameters.ImePay imePay = ImePay( merchantCode: 'TEST', module: 'TEST', userName: 'TEST', password: 'TEST', amount: 50.0, merchantName: 'TEST', recordingServiceUrl: 'TEST', deliveryServiceUrl: 'TEST', environment: ImePayEnvironment.TEST, refId: 'TEST', ); -
Call
startPaymentmethod.```dart imePay.startPayment(onSuccess: (ImePaySuccessResponse data) { print(data); }, onFailure: (error) { print(error); }); ```The response
ImePaySuccessResponseconsists of the following parameters -
.amountString : the amount paid -
.refIdString : the reference Id of the transaction -
.msisdnString -
.transactionIdString -
.responseDescriptionString -
.responseCodeString