uni_pay_web 2.0.0 copy "uni_pay_web: ^2.0.0" to clipboard
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');
}
2
likes
160
pub points
21%
popularity

Publisher

verified publisherunicodesolutions.co

A lightweight library for processing online payments and generating invoices with Moyasar, providing seamless payment info retrieval as well.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on uni_pay_web