uni_pay 1.0.3 copy "uni_pay: ^1.0.3" to clipboard
uni_pay: ^1.0.3 copied to clipboard

A library for making online payment by using Moyasar and Tamara payment gateway

Payment Gateway Library by UNICODE Team #

A library for making online payment by using Moyasar and Tamara payment gateway

Features support #

UniPay Arabic by Saif UniPay English by Saif

Getting started #

Please have a look at our /example project for a better understanding of implementations.

   UniPay(
      uniPayData: UniPayData(
        appName: "UniPay",
        locale: UniPayLocale.ar,
        customerInfo: UniPayCustomerInfo(
          fullName: "Mohammad Saif",
          email: "example@mail.com",
          phoneNumber: "+966555666777",
          address: UniPayAddress(addressName: "Test Address", city: "Riyadh"),
        ),
        environment: UniPayEnvironment.development,
        credentials: UniPayCredentials(
          applePayMerchantIdentifier: "merchant.com.mystore.sa",
          paymentMethods: [
            UniPayPaymentMethods.card,
            UniPayPaymentMethods.applepay,
            UniPayPaymentMethods.tamara,
          ],
          moyasarCredential:
              MoyasarCredential(publishableKey: "pk_key", secretKey: "sk_key"),
          tamaraCredential: TamaraCredential(
            token: "Tamara_Token",
            merchantUrl:
                MerchantUrl(notification: "https://my-app.com/webhook"),
          ),
        ),
        orderInfo: UniPayOrder(
          transactionAmount: TransactionAmount(totalAmount: 150.55),
          orderId: DateTime.now().millisecondsSinceEpoch.toString(),
          description: "Test Order Description",
          items: [
            UniPayItem(
                id: "Product_ID", name: "Product name", quantity: 1, price: 50)
          ],
        ),
        onPaymentSucess: (res) {
          debugPrint("Payment Success ----> ${res.toMap()}");
        },
        onPaymentFailed: (res) {
          debugPrint("Payment Failed ----> ${res.toMap()}");
        },
      ),
    )
4
likes
0
pub points
68%
popularity

Publisher

verified publisherunicodesolutions.co

A library for making online payment by using Moyasar and Tamara payment gateway

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_inappwebview, flutter_localizations, http, lottie, moyasar

More

Packages that depend on uni_pay