API Response

Payment gateway will return a response in json format to the merchant. Please take note that this is NOT the payment status result.

No
Field Name
Data Type (Size)
M/O/C
Description

1.

MerchantID

ans{1..32}

M

Merchant ID provided by PG

2.

ReferenceNo

ans{1..32}

M

Merchant Unique Transaction / Order / Billing / Reference No.

3.

TxnType

a{4}

M

SALS or AUTS

3.

TxnID

ans{1..100}

M

PG Transaction ID.

4.

TxnChannel

ans{0..30}

M

Channel (Refer to Appendix B for channel)

5.

TxnCurrency

a{3}

M

ISO4217 currency code, eg. “MYR”, “THB”, “IDR”

6.

TxnAmount

ns{10,2}

M

Transaction amount eg.”1.00”, always 2 decimal points

7.

TxnData

array

M

Refer to TxnData below.

8.

payTxnID

n{7}

C

Truncated TxnID applicable for 7-eleven only.

9.

param_extend

C

Only appears when using VTC-Pay

TxnData

No
Field Name
Data Type (Size)
M/O/C

1

RequestURL

ans{1..255}

M

URL to be REDIRECT or POPUP

2

RequestMethod

a{3..4}

M

Action method [GET/POST]

3

RequestType

a{5..8}

M

Recommended action [REDIRECT/POPUP/RESPONSE]

4

RequestData

array

M

Data to be submitted to the RequestURL

Note: RequestType RESPONSE is the final result of that payment and no further action required.

Refer below for sample response TxnData.

Sample - Payment Response

Last updated