uni_pay_web 1.0.0 copy "uni_pay_web: ^1.0.0" to clipboard
uni_pay_web: ^1.0.0 copied to clipboard

A library for making online payment by using Moyasar.

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
130
pub points
16%
popularity

Publisher

verified publisherunicodesolutions.co

A library for making online payment by using Moyasar.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on uni_pay_web