uni-pay-web
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

UniPay

Moyasar Payment by UNICODE Team

A library for making online payment by using Moyasar payment gateway developed by UNICODE Team.

Features support

UniPay Payment

  • Apple Pay
  • Card support (Mada, Visa, and Mastercard)
  • stc pay

UniPay

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

Package Sidebar

Install

npm i uni-pay-web

Weekly Downloads

4

Version

1.1.3

License

MIT

Unpacked Size

36.5 kB

Total Files

21

Last publish

Collaborators

  • mohammadsaif