liqpay 0.1.1 copy "liqpay: ^0.1.1" to clipboard
liqpay: ^0.1.1 copied to clipboard

LiqPay payment service wrapper library to be used on a client or server side dart.

Annotation #

The package is in early stage. Development help and support is highly welcomed.

🇺🇦 Support Ukraine

LiqPay #

pub package

LiqPay payment service wrapper library to be used on a client or server side dart.

Features #

Package has minimum number of features as of now.

  • Direct payment with card
  • Open checkout URL

Usage #

1. Direct payment with card #

final liqPay = LiqPay("public_liqpay_key", "private_liqpay_key");
final number = "4242424242424242";
final expirationMonth = "12";
final expirationYear = "99";
final cvv = "000";
final card = LiqPayCard(number, expirationMonth, expirationDate, cvv);
final order = LiqPayOrder(const Uuid().v4(), 1, 'Order description', card: card);

await liqPay.purchase(order);

2. Open checkout URL #

Payment can also be done with checkout URL opening in internal browser. In such case you should specify a callback URL to receive POST message from LiqPay with the results of the transaction.

final liqPay = LiqPay("public_liqpay_key", "private_liqpay_key");

// Server URL to receive POST message with result from LiqPay
final serverUrl = "my_server_url";
final order = LiqPayOrder(const Uuid().v4(), 100, 'Order description', serverUrl: serverUrl),

final url = await liqPay.checkout(order);

// Open url in web view

More info at LiqPay Checkout

Additional information #

More documentation can be found on LiqPay Official Website

3
likes
160
points
38
downloads

Publisher

verified publisherolegnovosad.com

Weekly Downloads

LiqPay payment service wrapper library to be used on a client or server side dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

crypto, http, http_interceptor

More

Packages that depend on liqpay