Government Savings Bank

The Government Savings Bank (GSB) is a legal person and a state-owned enterprise. It is a government-guaranteed financial institution under the supervision of the Ministry of Finance of Thailand.

GSB has more than 5 million Thai users. Currently, the bank supports users to pay via online banking.

Properties

The properties of the GSB payment method are shown in the following table:

Payment type

Online banking

Acquirer

AlipaySG, AlipayUS

Refund

Merchant entity location

SG, AU, HK, US

Partial refund

Buyer country/region

Thailand

Refund period

Processing currency

THBTime to return refund result

Payment flow

RedirectTime to return payment result

Real-time

Minimum payment amount1 THB

Chargeback/Dispute

Maximum payment amount

2 million THB

(ATM: 0.5 million THB)

Customize the timeout✔️
Default timeout

48 hours

User experience

Note: The following payment flows on different terminals are reference only, and represent this payment method's flow on different terminal types. For supported merchants' terminal types, consult Antom Technical Support.

The following graphic shows the user experience for the App terminal.

1748336291334-33bd2e61-3190-4ba6-ac02-186e6576efad (1).png

  1. The buyer selects GSB to pay.
  2. The buyer obtains the payment code.
  3. The buyer manually opens a bank app and completes the payment.
  4. The buyer is redirected to the merchant result page.

Supported online payment integrations

Antom offers a range of integration options tailored to each payment method. Each payment method may support different online payment integration options, allowing for flexibility based on your business requirements. The table below provides detailed information about the specific integrations available for each payment method:

Supported online payments

Supported integrations

Payment method manual

Checkout Payment

✔️ API-only

❌ Hosted Checkout Page

❌ Embedded Checkout Page

❌ Mobile Element

❌ Web Element

Pay-by-Link

Government Savings Bank

Auto Debit

None

Subscription Payment

None

EasySafePay

None

Scan to Link

None

Integration considerations

The following section outlines integration considerations for various payment types, detailing customized integration solutions and payment method features.

About normalUrl

  • When accepting payments from GSB, you can choose whether to use normalUrl:
    • If choosing not to use normalUrl, you can directly render the codeValue in the API response on the merchant page to display the QR code or payment code, reducing page redirections and improving the payment experience.
    • If choosing to use normalUrl, redirect your buyer to the address specified by normalUrl and proceed the payment process as indicated in User experience.
  • For Web, WAP, and App terminals, normalUrl is returned in the response of the pay API. The buyer is redirected to the address specified by normalUrl and uses the payment code displayed on the page to proceed with the payment within the mobile banking app or on the offline ATM device. After the payment is completed, the middle page automatically redirects to the merchant result page.
  • Different terminal types have specific integration features when returning normalUrl:
    • WAP: The returned normalUrl is the payment code and payment operation display page. The buyer copies the payment code and proceeds to the bank app or the ATM based on the payment operation or the screenshot to complete the payment.
    • App: The returned normalUrl does not trigger the payment method app. It is recommended to render the URL page directly within the merchant app and provide payment operation steps to guide the buyer to complete the payment.

After payments

  • After the buyer completes the payment in the bank app, the banking app will not automatically redirect to the merchant's results page. The buyer needs to manually navigate to the transaction initiation app (the merchant app or browser).
  • This payment method does not support refunds. It is recommended to communicate directly with the buyer offline.
  • Obtain the payment result from the payment result notification (notifyPayment) or by making inquiries (inquiryPayment). Handle the redirection and display of the payment result page to avoid duplicate payments.

Default timeout

The QR code returned by Antom will not be refreshed automatically. When displaying the QR code, use the expireTime parameter value returned in the pay (Checkout Payment) API response to display the timeout information. Enable the copy function for the payment code when displaying the payment code, and allow the buyer to conveniently paste the payment code into the payment method app.

Response sample

The following is a code example in the payment response:

copy
{
    "normalUrl": "https://iexpfront-sea-global.alipay.com/payments/method/checkout/code.html?merchantId=188iwOYLsWM%2B3OM5i43oAN6sL7yTti1YlTOEpSbxNsmiew%3D&paymentRequestId=CXAYOydvzFe7eL4AQN2FPFl4b1fasGA7UFbW9%2Boganw%3D&clientId=5Y607N2YJU8006726",
    "orderCodeForm": {
        "codeDetails": [
            {
                "codeValue": "0887405595",
                "displayType": "TEXT"
            },
            {
                "codeValue": "https://iexpfront-sea.alipay.com/showQrImage.htm?code=3%252Fk97oupdVD%252ByBP1ou%252BptqjVaG8Ixnok9U7nnDE2WPVTDPpBzDn8dkIsmtHcKjKN8whponnj8Sni940IWpkvIw%253D%253D&size=M&sid=188",
                "displayType": "MIDDLEIMAGE"
            },
            {
                "codeValue": "|010555303610000 0000000887405595 0000000887405595 120",
                "displayType": "TEXT"
            }
        ],
        "expireTime": "2024-03-05T18:59:42-08:00"
    },
    "paymentActionForm": "{\"paymentActionFormType\":\"PaymentCodeForm\",\"paymentCodeExpireTime\":1709693982000,\"paymentCodeInfos\":[{\"paymentCodeDetails\":[{\"codeValue\":\"0887405595\",\"codeValueType\":\"DIGICODE\",\"displayType\":\"TEXT\"},{\"codeValue\":\"|010555303610000 0000000887405595 0000000887405595 120\",\"codeValueType\":\"QRCODE\",\"displayType\":\"IMAGE\"},{\"codeValue\":\"|010555303610000 0000000887405595 0000000887405595 120\",\"codeValueType\":\"BARCODE\",\"displayType\":\"IMAGE_CONVERT\"}],\"paymentCodeInfoType\":\"PAYMENT_CODE\"}]}",
    "paymentAmount": {
        "currency": "THB",
        "value": "120"
    },
    "paymentCreateTime": "2024-03-03T18:59:42-08:00",
    "paymentId": "20240304194010800100188910209087631",
    "paymentRequestId": "PAY_202403041405940069",
    "redirectActionForm": {
        "method": "GET",
        "redirectUrl": "https://iexpfront-sea-global.alipay.com/payments/method/checkout/code.html?merchantId=188iwOYLsWM%2B3OM5i43oAN6sL7yTti1YlTOEpSbxNsmiew%3D&paymentRequestId=CXAYOydvzFe7eL4AQN2FPFl4b1fasGA7UFbW9%2Boganw%3D&clientId=5Y607N2YJU8006726"
    },
    "result": {
        "resultCode": "PAYMENT_IN_PROCESS",
        "resultMessage": "payment in process",
        "resultStatus": "U"
    }
}