xpresspayments_gateway 0.0.9 copy "xpresspayments_gateway: ^0.0.9" to clipboard
xpresspayments_gateway: ^0.0.9 copied to clipboard

This is a plugin for easy integration of Xpresspayments payment gateway with your flutter application.

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);
    });
  }

Screenshot #

alt text

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

0
likes
120
points
187
downloads

Publisher

verified publisherxpresspayments.com

Weekly Downloads

This is a plugin for easy integration of Xpresspayments payment gateway with your flutter application.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

dartz, device_info_plus, dio, flutter, flutter_svg, get, intl, pinput, pretty_dio_logger, signalr_netcore, webview_flutter, win32

More

Packages that depend on xpresspayments_gateway