unicode_moyasar 1.0.3 unicode_moyasar: ^1.0.3 copied to clipboard
A library for making online payment by using Moyasar payment gateway developed by UNICODE Team
Moyasar Payment by UNICODE Team #
A library for making online payment by using Moyasar payment gateway developed by UNICODE Team.
Features support #
- Card support (mada, visa, mastercard)
- Apple Pay
- stc pay
Getting started #
Please have a look at our /example project for a better understanding of implementations.
MoyasarPayment(
moyasarPaymentData: MoyasarPaymentData(
appName: "UNICODE",
secretKey: "sk_key",
publishableSecretKey: "pk_key",
purchaseAmount: 75.50,
locale: PaymentLocale.en,
paymentEnvironment: PaymentEnvironment.test,
paymentOptions: [
PaymentOption.card,
PaymentOption.applepay,
PaymentOption.stcpay,
],
),
onPaymentSucess: (response) {
//TODO Handle success payment response
debugPrint("Success ------> ${response.toMap()}");
},
onPaymentFailed: (response) {
//TODO Handle failed payment response
debugPrint("Failed ------> ${response.toMap()}");
},
)
Apple pay Setup #
-
In order to use Apple Pay within your project, you first need to our domain in Apple Pay - domains settings in your Moyasar Dashboard.
-
Please visit their official docs to read more about how to add the domain for Apple pay.
unicode-moyasar.web.app
- Please skip the steps number 1 and 2 and use the URL provided above.