Flutter plugin to integrate ImePay in your app.
-
Add ime_pay in your
pubspec.yaml
dependencies: ime_pay:
-
Create
ImePay
object 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
startPayment
method.```dart imePay.startPayment(onSuccess: (ImePaySuccessResponse data) { print(data); }, onFailure: (error) { print(error); }); ```
The response
ImePaySuccessResponse
consists of the following parameters -
.amount
[String] : the amount paid -
.refId
[String] : the reference Id of the transaction -
.msisdn
[String] -
.transactionId
[String] -
.responseDescription
[String] -
.responseCode
[String]