1.1.3 • Published 3 months ago
uni-pay-web v1.1.3
UniPay
Moyasar Payment by UNICODE Team
A library for making online payment by using Moyasar payment gateway developed by UNICODE Team.
Features support
- Apple Pay
- Card support (Mada, Visa, and Mastercard)
- stc pay
Getting started and initiate your payment
UniPay.__initiateUniPayment({
uniPayConfig: new UniPayConfig({
psKey: "pk_test_key",
sKey: "sk_test_key",
environment: UniPayEnv.staging,
redirectUrl: "https://your-website.com",
totalAmountWithVat: 150.45,
businessName: "Your company name",
description: "Description of the order",
locale: UniPayLocale.ar,
}),
});
Verify transaction by the callback url.
UniPay.__verifyPaymentTransaction({
uniPayConfig: new UniPayConfig({
psKey: "pk_test_key",
sKey: "sk_test_key",
environment: UniPayEnv.staging,
redirectUrl: "https://your-website.com",
totalAmountWithVat: 150.45,
businessName: "Your company name",
description: "Description of the order",
locale: UniPayLocale.ar,
}),
});
Apple pay Setup
In order to use Apple Pay within your project, you first need to add 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