Skip to content

qpay-sdk/qpay-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qpay_flutter

pub CI License: MIT

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

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages