easypaisa_flutter 1.0.3 copy "easypaisa_flutter: ^1.0.3" to clipboard
easypaisa_flutter: ^1.0.3 copied to clipboard

A Flutter Package to integrate Easypaisa payment gateway in your flutter app with ease.

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

πŸ”¨ 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 
);

: 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

: Response #


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

: 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

: 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"
}


: #

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:

#

35
likes
150
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter Package to integrate Easypaisa payment gateway in your flutter app with ease.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter, http

More

Packages that depend on easypaisa_flutter