Skip to content

TrueMoney Beta

Last updated: September 14, 2022

Start accepting payments using one of the top e-wallets in Thailand. TrueMoney provides a mobile payment service, allowing its customers to make one-time purchases or sign up for a recurring payment.

TrueMoney is a part of Ant Financial’s e-wallet network, which enables it to be used in countries outside of the local market, as long as the regions are covered by Ant’s partners.

When accepting payments with TrueMoney, you need to display the Alipay+ and TrueMoney logos on your payment interface. To ensure that the logos match Alipay's requirements, refer to their Brand display guidelines for online payments and Brand display guidelines for cashier payments.

To learn more, reach out to your Customer Success Manager or support@checkout.com.

Model

Collecting

Payment flow

Redirect

Payment method type

Wallet

One-step payment

Authorization

Capture

Refund

Partial refund

Chargeback

Recurring payment


Supported countries and currencies

Supported countries

  • EU countries
  • Hong Kong
  • Singapore
  • United Kingdom

Supported processing and settlement currencies

  • EUR
  • HKD
  • SGD
  • GBP

TrueMoney has a 2-step process:


Request a payment

For the full API specification, see the API reference.

    post

    https://api.checkout.com/payments

    Copied!

    Request example

    If a customer ID or email is not provided in the request, we automatically create a customer profile and return the customer ID in the response.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    {
    "amount": 1100,
    "currency": "EUR",
    "source": {
    "type": "truemoney"
    },
    "processing": {
    "terminal_type": "APP",
    "os_type": "IOS"
    },
    "success_url": "https://google.com/success",
    "failure_url": "https://google.com/failure",
    "payment_type": "Regular",
    "reference": "ORD-5023-4E89",
    "capture": true,
    "customer": {
    "email": "test@test.com"
    },
    "shipping": {
    "address": {
    "country": "GB"
    }
    },
    "items": [{
    "reference": "1st item reference",
    "name": "1st item name",
    "unit_price": 10
    }],
    "processing_channel_id": "pc_ekaubqrravqupfxde7kxvd2t3i"
    }

    Response example

    If you receive a 202 Success response with a payment id and a status field set to Pending, your request was successful.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    {
    "id": "pay_sxzrgliy2w3e5gpnby3chlswwq",
    "status": "Pending",
    "reference": "ORD-5023-4E89",
    "customer": {
    "id": "cus_2g4ehcpm6phexgkzahlwxvbgne",
    "email": "test@test.com",
    "name": "Louis Smith"
    },
    "_links": {
    "self": {
    "href": "https://gwc.ckotech.co/gateway/payments/pay_sxzrgliy2w3e5gpnby3chlswwq"
    },
    "redirect": {
    "href": "https://psp.ac.alipay.com/page/simulation-wallet/acwallet/alipayconnectcode.html?code=281666040095AHvh5AIKT0a3kv8X6Zzv3kiv&pspName=TRUEMONEY&loadMode=2"
    }
    }
    }

    Redirect the customer

    Redirect your customer to the redirect link’s href in the response. This will allow the customer to authorize the payment, before they are transferred to your predefined success or failure URL.


    Request a recurring payment

    You can set up recurring payments for a subscription-based service. This allows you to make pre-authorized fund deductions from a customer’s account.

    To request a recurring payment, your payment request should have payment_type set to recurring.

    To get a detailed view of all required and optional fields, see our API reference.

      post

      https://api.checkout.com/payments

      Copied!

      Initial request example

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25
      26
      27
      28
      29
      30
      {
      "amount": 1100,
      "currency": "EUR",
      "source": {
      "type": "truemoney"
      },
      "processing": {
      "terminal_type": "WEB"
      },
      "success_url": "https://google.com/success",
      "failure_url": "https://google.com/failure",
      "payment_type": "Recurring",
      "reference": "ORD-5023-4E89",
      "capture": "true",
      "customer": {
      "email": "test@test.com",
      "name": "Louis Smith"
      },
      "shipping": {
      "address": {
      "country": "GB"
      }
      },
      "items": [{
      "reference": "1st item reference",
      "name": "1st item name",
      "unit_price": 10
      }],
      "processing_channel_id": "pc_ekaubqrravqupfxde7kxvd2t3i"
      }

      Initial response example

      If you receive a 202 Success response with a payment id and a status field set to Pending, your request was successful.

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      {
      "id": "pay_4z3h7526xn6evko3vnybrmnu4e",
      "status": "Pending",
      "reference": "ORD-5023-4E89",
      "customer": {
      "id": "cus_2g4ehcpm6phexgkzahlwxvbgne",
      "email": "test@test.com",
      "name": "Louis Smith"
      },
      "source": {
      "id": "src_gnyde6bvifsukobwjb2vkwkbni",
      "type": "truemoney"
      },
      "_links": {
      "self": {
      "href": "https://gwc.ckotech.co/gateway/payments/pay_4z3h7526xn6evko3vnybrmnu4e"
      },
      "redirect": {
      "href": "https://g.alipayplus.com/page/aplus-linker/acwallet/qrcode.html?url=alipayconne"
      }
      }
      }

      Subsequent request example

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25
      26
      {
      "amount": 44,
      "currency": "EUR",
      "source": {
      "type": "id",
      "id": "src_inmwstthmjyfcskeir3gcqtyj4"
      },
      "payment_type": "Recurring",
      "reference": "ORD-5023-4E89-1234",
      "customer": {
      "name": "Louis Smith",
      "email": "test@test.com"
      },
      "shipping": {
      "address": {
      "country": "GB"
      }
      },
      "items": [{
      "reference": "1st item reference",
      "name": "1st item name",
      "unit_price": 43,
      "quantity": 1
      }],
      "processing_channel_id": "pc_ekaubqrravqupfxde7kxvd2t3i"
      }

      Subsequent response example

      If you receive a 202 Success response with a payment id and a status field set to Pending, your request was successful.

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      {
      "id": "pay_xljv6f7ye4lebinkv7i7pho634",
      "status": "Pending",
      "reference": "ORD-5023-4E89-1234",
      "customer": {
      "id": "cus_mzrvode5g2jubm4bgbaad2usbu",
      "email": "test@test.com",
      "name": "Louis Smith"
      },
      "source": {
      "id": "src_inmwstthmjyfcskeir3gcqtyj4",
      "type": "truemoney"
      },
      "_links": {
      "self": {
      "href": "https://gwc.ckotech.co/gateway/payments/pay_xljv6f7ye4lebinkv7i7pho634"
      }
      }
      }

      Get details about a payment

      You can retrieve details about an existing TrueMoney payment by using the payment id found in the payment response.

      Use the details below to set up your request.

      Endpoints

      For the full API specification, see the API reference.

        get

        https://api.checkout.com/payments/{id}

        Copied!

        Response example

        1
        2
        3
        4
        5
        6
        7
        8
        9
        10
        11
        12
        13
        14
        15
        16
        17
        18
        19
        20
        21
        22
        23
        24
        25
        26
        27
        28
        29
        30
        31
        32
        33
        34
        35
        36
        37
        38
        39
        40
        41
        42
        43
        44
        45
        46
        47
        48
        49
        50
        51
        52
        53
        {
        "id":"pay_7domcpi745nu5bdhm5rtrblbem",
        "requested_on":"2022-09-02T07:15:58.894077Z",
        "source":{
        "type":"truemoney"
        },
        "items":[
        {
        "name":"1st item name",
        "unit_price":10,
        "reference":"1st item reference"
        }
        ],
        "amount":1100,
        "currency":"EUR",
        "payment_type":"Regular",
        "reference":"ORD-5023-4E89",
        "status":"Captured",
        "approved":true,
        "balances":{
        "total_authorized":1100,
        "total_voided":0,
        "available_to_void":0,
        "total_captured":1100,
        "available_to_capture":0,
        "total_refunded":0,
        "available_to_refund":1100
        },
        "customer":{
        "id":"cus_mzrvode5g2jubm4bgbaad2usbu",
        "email":"test@test.com",
        "name":"Louis Smith"
        },
        "shipping":{
        "address":{
        "country":"GB"
        }
        },
        "processing":{
        "partner_customer_id":"210220900020124540718"
        },
        "_links":{
        "self":{
        "href":"https://gwc.ckotech.co/gateway/payments/pay_7domcpi745nu5bdhm5rtrblbem"
        },
        "actions":{
        "href":"https://gwc.ckotech.co/gateway/payments/pay_7domcpi745nu5bdhm5rtrblbem/actions"
        },
        "refund":{
        "href":"https://gwc.ckotech.co/gateway/payments/pay_7domcpi745nu5bdhm5rtrblbem/refunds"
        }
        }
        }

        Refund a payment

        TrueMoney supports both partial and full refunds. You can refund a payment through the Dashboard or using the refund API.

        To get a detailed view of all required and optional fields, see our API reference.

          post

          https://api.checkout.com/payments/{id}/refunds

          Copied!

          Request example

          1
          2
          3
          {
          "amount": 20
          }

          Response example

          1
          2
          3
          4
          5
          6
          7
          8
          {
          "action_id": "act_c4x2vjvnx4uelb4io72fa4e57a",
          "_links": {
          "payment": {
          "href": "http://gwc.ckotech.co/gateway/payments/pay_fzzdurog3squjj2ityho7x3o64"
          }
          }
          }

          Webhooks

          You may receive the following webhooks when using TrueMoney.

          WebhookDescription

          payment_pending

          Sent when a merchant initiates the payment request.

          payment_capture_pending

          Sent when a payment request has been successfully initiated and payment is pending for capture.

          payment_captured

          Sent when the payment has been successfully captured.

          payment_declined

          Sent when a payment request has been rejected.

          payment_refund_pending

          Sent when the refund of the payment has been (fully or partially) accepted.

          payment_refunded

          Sent when the payment has been (fully or partially) refunded.

          payment_refund_declined

          Sent when a refund has been declined.

          View all of our webhook notifications.


          Testing TrueMoney

          Before you begin testing, you'll need to contact your Customer Success Manager or Implementation Engineer to:

          • Activate TrueMoney payments in the sandbox environment.
          • Get credentials to access the Alipay+ Linker app.

          To start testing once you've completed merchant onboarding to TrueMoney:

          1. Sign in to the sandbox environment using the username and password provided by your Customer Success Manager.
          2. Create a TrueMoney sandbox transaction by following the Request a payment instructions.
          3. Use the testing credentials to know what to do next depending on the device you are using.

          Testing credentials

          When requesting a TrueMoney payment, there are specific steps to follow depending on the device being used and the processing.terminal_type specified in the payment request.

          Deviceprocessing.terminal_typeAfter selecting redirect link

          Computer

          APP

          Select Pay Now

          Application

          APP

          Select Pay Now

          Computer

          WEB

          For this method, make sure you have set up TrueMoney as an e-wallet under Common Settings in the Alipay+ Linker app. To choose the correct e-wallet, select TEST_WALLET.

          1. Sign in to Alipay+ Linker app with the credentials provided by your Customer Success Manager.
          2. Select TMN as an e-wallet under Common Settings.
          3. Select Scan.
          4. Scan the QR code from your computer screen.
          5. Select Pay Now.

          Application

          WEB

          1. Open the URL with the Alipay+ Linker app. You will be redirected to a payment confirmation page.
          2. Select Pay Now.