Web
To initiate checkout SDK, which will generate the SDK HTML
Should be same ID of checkout.
Merchant domain.
API Public key should be used.
It is generated when payment was created. See checkout API Session ID.
Language used. See checkout API language.
HTML
js
To refresh the SDK. It is useful when we get an error and want to refresh the content.
The error callback is invoked when problems occur during a payment. It must be defined using the data-error attribute on the Checkout script tag. The attribute value may be the name of a global function or a URL string. When a URL is provided, the browser will be redirected to the new page with a query parameter appended for each argument.
Could be (“created”, “in_process”, “canceled”, “success” or “error”).
It is the returned string.
Called when a customer cancels the payment.
It is generated when payment was created. See checkout API Session ID
Could (“created”, “in_process”, “canceled”, “success” or “error”).
Where the customer gets navigated to, after the payment process ends. See check out API redirect_url.
A number for transaction provided by merchant. See checkout API order_no.
Either pay or authorized.
reference_numberstring
string
Transaction reference number.
It is the returned string.
Called when the payment completed successfully.
It is the returned string.
It is generated when payment was created. See checkout API Session ID.
Could (“created”, “in_process”, “canceled”, “success” or “error”).
Where the customer gets navigated to, after the payment process ends. See check out API redirect_url.
A number for transaction provided by merchant. See checkout API order_no.
Either pay or authorized.
reference_numberstring
string
Transaction reference number.
return new Promise(function(resolve, reject), It is a helper function that has to return a promise object, to create the redirect_url. This allows the merchant to redirect the user to the cart page and wait for a while before creating the redirect_url. In case the customer changes items in the cart, the due amount will be updated accordingly, then the merchant will wait for a while until the customer does not return, then the function returns a promise object, the cart will be frozen and marked as submitted, and the redirect_url will be generated.
Could (“created”, “in_process”, “canceled”, “success” or “error”).
It is the returned string.
Where the customer gets navigated to, after the payment process ends. See check out API redirect_url.
Apple Pay will show automatically if the following conditions are being meet:
Customer has an Apple device which supports Apple Pay payments.
The browser is safari, only for web payments in the mobile SDK it doesn’t matter.
The customer has a wallet configured on his Apple Pay device.
The customer has more than one active cards in the wallet.
For Apple Pay integration, you have to enable Apple Pay in capabilities in your project. If apple pay available, will show by default.
Last updated