Payment-method icon

Online banking Thailand Component

Add Online banking Thailand to an existing Components integration.

On this page, you can find additional configuration for adding Online banking Thailand to your Components integration.

Before you begin

This page assumes you have already:

API reference

You don't need to send additional fields for Online banking Thailand. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:

Component configuration

Step 1: Create a DOM element

Create a DOM element on your checkout page, placing it where you want the payment method form to be rendered:

 <div id="molpay_ebanking_TH-container"></div>

Step 2: Create an instance of the Component

Use the create method of your AdyenCheckout instance, in this case checkout, to create the Component:

const onlineBankingThailandComponent = checkout.create('molpay_ebanking_TH').mount('#molpay_ebanking_TH-container');

Optional configuration

You can add the following optional configuration:

Parameter name Description Default
showImage Set to false to remove the bank logos from the Online banking Thailand form. true
issuer Set to an Online banking Thailand issuer ID to preselect a specific bank. No bank is preselected.
highlightedIssuers Set to the Online banking Thailand issuer IDs for banks you want to show on top of the dropdown menu. Added in v5.1.0 All issuers are shown in the dropdown.
placeholder The string you want to show as the dropdown menu text. Custom translation configuration overrides this value. Select your bank

If you want to add an optional configuration, include this in a configuration object. The following example shows how to configure the Component to remove the bank logos, and preselect an Online banking Thailand issuer. In this example, Bangkok Bank is selected:

const onlineBankingThailandConfiguration = {
  showImage: false, // Optional. Set to **false** to remove the bank logos from the Online banking Thailand form.
  issuer: "molpay_bangkokbank" // Optional. It is set to Bangkok Bank. Set this to an **id** of an Online banking Thailand issuer to preselect it.

Use the create method of your AdyenCheckout instance, in this case checkout, to create an instance of the Component. Add the configuration object if you created one.

const onlineBankingThailandComponent = checkout.create('molpay_ebanking_TH', onlineBankingThailandConfiguration).mount('#molpay_ebanking_TH-container');

List of issuer IDs

Bank name Issuer ID
Bangkok Bank molpay_bangkokbank
Krungsri Bank molpay_krungsribank
Krung Thai Bank molpay_krungthaibank
The Siam Commercial Bank molpay_siamcommercialbank
Kasikorn Bank molpay_kbank

Test and go live

Using any issuer ID that is available for the Online banking Thailand Component for the respective country, make Online banking Thailand online banking test payments to test the different payment results.

Check the status of the Online banking Thailand test payments in your Customer Area > Transactions > Payments.

Before you can accept live Online banking Thailand payments, you need to submit a request for Online banking Thailand in your live Customer Area.