qpay_flutter 1.0.0 copy "qpay_flutter: ^1.0.0" to clipboard
qpay_flutter: ^1.0.0 copied to clipboard

QPay V2 payment UI widgets for Flutter

qpay_flutter #

pub CI

QPay V2 payment UI widgets for Flutter.

Install #

dependencies:
  qpay_flutter: ^1.0.0

Widgets #

QR Code #

QPayQrCode(qrText: invoice.qrText)

Payment Sheet #

QPayPaymentSheet.show(
  context,
  qrText: invoice.qrText,
  banks: invoice.urls.map((u) => QPayBankItem(
    name: u.name,
    logo: u.logo,
    link: u.link,
  )).toList(),
);

Payment Button #

QPayPaymentButton(
  qrText: invoice.qrText,
  banks: bankItems,
)

Payment Poller #

final poller = PaymentPoller(
  checker: (id) async {
    final result = await client.checkPayment(...);
    return result.rows.isNotEmpty;
  },
);
final paid = await poller.poll(invoice.invoiceId);

License #

MIT

0
likes
130
points
64
downloads

Publisher

unverified uploader

Weekly Downloads

QPay V2 payment UI widgets for Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, qpay, qr_flutter, url_launcher

More

Packages that depend on qpay_flutter