Dynamic PayNow QR

Dynamic PayNow QR allows you to create unique PayNow QR codes for each and every transaction. Upon getting the response, you will need to convert the base64 string to an image and display it to your customer.

There will be 2 callbacks fired:

  1. Payment completion by customer
  2. Crediting of funds to your account

For more information on PayNow, head over to PayNow QR.

Dynamic Virtual Account

Dynamic Virtual Account (VA) allows you to create unique VAs for each and every transaction. You can tie your transactionID with a VA, e.g. txnID123 <> VA123.

If a transaction (e.g. txnID123) is Paid or Expired, subsequent transfers to the Virtual Account (e.g. VA123) will not be associated. These subsequent transfers will be refunded to the user to the originating bank account.

ParameterRequired?TypeDescription
currencyOptionalStringTo specify the currency for your payments. For now, only "SGD" is allowed.
amountMandatoryFloat (up to 2decimal places)Transaction Amount that user is required to pay/transfer.
referenceIdMandatoryStringThis is used for idempotency and should typically be a "transaction id" or "order id" on your platform.
DescriptionOptionalStringAn arbitrary string attached to the object.
paymentMethodTypeMandatoryStringMust always be "virtual_bank_account"
paymentMethodOptionsMandatoryStringAvailable options: "fazz", "cimb"
expiredAtMandatoryStringTimestamp to be in Time.iso8601.
Expiry limit within 1hour to 30days

Example of Dynamic VA request

# POST api/v4/payments/
# FYI, passing in metadata is possible,
# "description": "{\"key\":\"abc\",\"key2\":\"another key\"}"  
  
Basic Auth
{
    "data": {
        "attributes": {
          	"currency": "SGD",
            "amount": 101.0,
            "referenceId": "ORDER_0002",
            "description": "This is the first order",
            "paymentMethodType": "virtual_bank_account",
            "paymentMethodOptions": {
                "bankShortCode": "fazz"
            },
            "expiredAt": "2023-06-20T17:48:42+07:00"
        }
    }
}

Example of Dynamic VA response

{
    "data": {
        "id": "order_47bc8cfc-5dea-47a5-9023-f4434eea5559",
        "type": "payment",
        "attributes": {
            "status": "pending",
          	"currency": "SGD",
            "amount": "101.0",
            "createdAt": "2022-09-05T14:35:21+08:00",
            "description": "This is the first order",
            "expiredAt": "2023-06-20T17:48:42+07:00",
            "referenceId": "ORDER_0002",
            "fees": "0.0",
            "paymentMethod": {
                "id": "ce4ef778-5b87-4f87-b8b0-6b32bc32507a",
                "type": "virtual_bank_account",
                "instructions": {
                    "bankShortCode": "FAZZ",
                    "bankName": "Xfers Pte Ltd",
                    "accountNo": "5009369267401"
                },
                "referenceId": "ORDER_0002"
            }
        }
    }
}
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!