uni_pay_web 2.0.0 uni_pay_web: ^2.0.0 copied to clipboard
A lightweight library for processing online payments and generating invoices with Moyasar, providing seamless payment info retrieval as well.
example/uni_pay_web_example.dart
import 'package:uni_pay_web/uni_pay_web.dart';
void main() {
/// 1- Create Invoice Example -------------------------------
var dto = UniInvoiceDTO(
amount: '100',
description: 'Test Description',
);
final createInvoiceRes = UniPayWeb.createInvoice(
dto: dto,
psk: 'YOUR-KEY',
);
print('createInvoiceRes: $createInvoiceRes');
/// 2- Get Payment Example -------------------------------
final getPaymentRes = UniPayWeb.getPayment(
transactionId: 'TRANSACTION-ID',
psk: 'YOUR-KEY',
);
print('uniPayWeb: $getPaymentRes');
}