xpresspayments_gateway

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

xpresspayments gateway

Xpresspayments Payment Gateway #
This is a library for easy integration of Xpresspayments payment gateway with your flutter application.
It offers different payment means

Card transaction
Tokenization
Bank
Transfer

Get Started #
Step 1 #
Register here to get a publicKey
Step 2 #
void pay(BuildContext context) {
int date = DateTime.now().microsecondsSinceEpoch;

int transactionId = Random().nextInt(1000000).floor().toInt();

String publicKey = "yourvalidpublickey";

InitialisePayment initialisePayment = InitialisePayment(
transactionId: (date + transactionId).toString(),
amount: 200.0,
email: "yourvalidemail@mail.com",
productId: "12",
productDescription: "some description"
);
Xpay xpay = Xpay(context, publicKey, isLive: false);
xpay.transact(initialisePayment, (transaction) {
debugPrint("result: ${transaction.toString()}");
}, (exception, transaction) {
debugPrint("error: " + exception.message);
});
}

copied to clipboard
Screenshot #

Test #
We provide test card for your use instead of using your own debit/credit cards.
5399 8300 0000 0008
MM/YY: 05/30
CVV: 000
PIN: 1234
TOKEN: 123456
PublicKey: XPPUBK-e634d14d9ded04eaf05d5b63a0a06d2f-X

copied to clipboard

License

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

Files:

Customer Reviews

There are no reviews.