QPay V2 payment UI widgets for Flutter.
dependencies:
qpay_flutter: ^1.0.0QPayQrCode(qrText: invoice.qrText)QPayPaymentSheet.show(
context,
qrText: invoice.qrText,
banks: invoice.urls.map((u) => QPayBankItem(
name: u.name,
logo: u.logo,
link: u.link,
)).toList(),
);QPayPaymentButton(
qrText: invoice.qrText,
banks: bankItems,
)final poller = PaymentPoller(
checker: (id) async {
final result = await client.checkPayment(...);
return result.rows.isNotEmpty;
},
);
final paid = await poller.poll(invoice.invoiceId);MIT