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

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

Payment Gateway Library Crafted by the UNICODE Team. #

A lightweight library for processing online payments and generating invoices with Moyasar, providing seamless payment info retrieval as well (πŸ‡ΈπŸ‡¦πŸ’™πŸ‡§πŸ‡©β€οΈπŸ‡ͺπŸ‡¬).

Features support #

Current supported methods #

  • CreateInvoice you can create Invoice by passing [amount , currency , description, expiredAt , successUrl ,backUrl ,metadata]
  • GetPayment you can get payment details with [id]

Getting started #

To use UniShipping in your Flutter project, follow these steps:

Installation #

  1. Add uni_pay_web to your pubspec.yaml file:
dependencies:
  uni_pay_web: latest_version
  1. Run flutter pub get to install the package.

3- Now You can call the methods:

// 1- Create Invoice
final createInvoiceRes = UniPayWeb.createInvoice(
  psk: 'YOUR-PUBLISHABLE-SECRET-KEY',
  dto: UniInvoiceDTO(
    amount: '100',
    currency: 'SAR',
    description: 'Test Description',
    expiredAt: 'expiredAt',
    successUrl: 'successUrl',
    backUrl: 'backUrl',
    metadata: {
        'product_name': "your-product-name",
        'product_id': "abc123",
    },
  ),
);

// 2- Get Payment Details
final getPaymentRes = UniPayWeb.getPayment(
  transactionId: 'TRANSACTION-ID',
  psk: 'YOUR-PUBLISHABLE-SECRET-KEY',
);

If you enjoyed it, then give it a star ⭐️ and like πŸ‘πŸ» and for more arts & crafts 🎨 from our team kindly visit here Team UNICODE. Until next time, keep coding and stay awesome πŸ˜‰

2
likes
160
points
66
downloads

Publisher

verified publisherunicodesolutions.co

Weekly Downloads

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