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 |
theme |
String |
The client handler, options are |
locale |
String |
The locale code, options are |
A trailing exclamation mark❗is used to denote a field that uses a Non‐Null type. By default, all types are nullable.