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

Libraries

qpay_flutter