uni_pay_web 1.0.0 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');
}