When using iFrame to load Ezypay's Hosted Payment Page, ensure that the code is tested using a hosted server. Using your local HTML file to test the iFrame will not guarantee the window listener would be able to return the payment method token in a timely manner.
The Hosted Payment Page is not applicable for South Korea - Please refer to the Korean Hosted Payment Page for more details.
What each field means when building the hosted payment page address:
|token||Can either be the "Authentication Token" (used when calling the API's|
generate a hosted payment page authentication token.
|countryCode||Will add the country code the merchant is in:|
|paymentMethods||Below are the payment method types possible:|
e) PAYTO (AU ONLY)
Each region has their own support payment methods. Here is a list of the support payment methods for each country.
|If both the merchantId and paymentMethods are specified, it will validate and display only the payment methods accepted by the merchant. For example, if the selected paymentMethods are VISA and MASTERCARD, but the merchant accepted payment methods only include BANK, VISA and MASTERCARD, then only VISA and MASTERCARD will be displayed.|
If the paymentMethods is specified, but one or more of those payment methods are not accepted by the merchant, then those payment methods will not be displayed. For example, if the selected paymentMethods are BANK and MASTERCARD, but the merchant accepted payment methods only include BANK and VISA, then only BANK will be displayed.
If neither the merchantId or the paymentMethods are specified then by default, it will automatically load the hosted payment page with the payment method type available for that region.
|mandateTypeId||This is applicable to PayTo only.|
Currently this value is applicable to PayTo users only.
However, this may change in the future.
Mandate Type ID
example : ba3039d6-e7d4-11ec-8fea-0242ac120002
|If this value is not specified or if an invalid value is submitted (e.g. mandate type ID belonging to a different merchant), the default mandate type for the merchant ID submitted will be applied.|
PayTo Integration (Only available in Australia)
merchantId and mandateTypeId are newly introduced fields to support PayTo Payment Methods. In order to support the PayTo payment methods, it is mandatory to provide the merchantId in the URL.
Integrator will add this page into an in their front-end code.
The page URL added into
<Iframe> will be:
HTML code sample
<iframe id="payment-frame" style="border: 0; width: 800px; height:620px"></iframe>
Sample on how the hosted payment page looks like:
Ezypay will return the newly created Payment Method Token data once the hosted payment page is submitted back to Ezypay.
Updated about 1 month ago