Quickstart

Add the Postpay SDK by including the following script in the <body> section:

<script>
  window.postpayAsyncInit = function() {
    postpay.init({
      merchantId: '{merchantId}',
      sandbox: false,
      theme: 'light',
      locale: 'en'
    });
  };
</script>

<script async src="https://cdn.postpay.io/v1/js/postpay.js"></script>

Option

Type

Description

merchantId

String❗

Merchant ID.

sandbox

Boolean

Set to true for testing evironment. Default: false.

theme

String

The client handler, options are light and dark. Default: light.

locale

String

The locale code, options are en (English) and ar (Arabic). Default: Postpay detects the locale of the browser.

A trailing exclamation mark❗is used to denote a field that uses a Non‐Null type. By default, all types are nullable.