easypaisa_flutter

Last updated:

0 purchases

easypaisa_flutter Image
easypaisa_flutter Images
Add to Cart

Description:

easypaisa flutter

easypaisa_flutter #
Easily integrate easypaisa payment option in your Flutter app.

πŸš€ Installation #
Add this to dependencies in your app's pubspec.yaml
easypaisa_flutter : latest_version
copied to clipboard
πŸ”¨ Initialization #
initialize in main.dart
EasypaisaFlutter.initialize(
'username', //merchant account username
'password', //merchant account password
'storeId', //merchant storeId
true, //is testing account or not
AccountType.MA, //Merchant account type either Mobile account or OTC
);
copied to clipboard
: Usage #

πŸ“Œ Note :
All requested perameters are String type

: Make a payment #
Response response = await EasypaisaFlutter.requestPayment(
'amount', //amount that you wanna charge
'account number', //user account number
'email', //user email address
);



print(response.body); // to print response body
copied to clipboard
: Response #

{
"orderId":"1709272404426",
"storeId":"storeId",
"transactionDateTime":"01/03/2024 10:53 AM",
"responseCode":"0001",
"responseDesc":"your response descriptions"}

copied to clipboard
: Inquire previous payment #
Response response = await EasypaisaFlutter.requestPaymentStatus(
'order ID', //order id recieved in response
'account number', //user account number
);



print(response.body); // to print response body
copied to clipboard
: Response #

{
"orderId”: "order Id",
"accountNum" : "654123987",
"storeId" : store Id,
"storeName" : "PG Store 1",
"paymentToken" : "40931912",
"transactionStatus" : "PENDING",
"transactionAmount" : 12,
"transactionDateTime" : "09/08/2018 10:04 PM",
"paymentTokenExpiryDateTime" : "09/07/2019 05:06 PM",
"msisdn" : "03458508726",
"paymentMode" : "MA",
"responseCode " : "0000",
"responseDesc" : "SUCCESS"
}


copied to clipboard
: #
Support the package #
If you find this package useful, you can support it for free by giving it a thumbs up at the top of this page. Here's another option to support the package:
#

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.