Backend Response
<PaymentResponse>
<version></version>
<timeStamp></timeStamp>
<merchantID></merchantID>
<subMerchantID></subMerchantID>
<respCode></respCode>
<pan></pan>
<amt></amt>
<uniqueTransactionCode></uniqueTransactionCode>
<tranRef></tranRef>
<approvalCode></approvalCode>
<refNumber></refNumber>
<eci></eci>
<dateTime></dateTime>
<status></status>
<failReason></failReason>
<userDefined1></userDefined1>
<userDefined2></userDefined2>
<userDefined3></userDefined3>
<userDefined4></userDefined4>
<userDefined5></userDefined5>
<storeCardUniqueID></storeCardUniqueID>
<recurringUniqueID></recurringUniqueID>
<paymentChannel></paymentChannel>
<backendInvoice></backendInvoice>
<paidChannel></paidChannel>
<paidAgent></paidAgent>
<IssuerCountry></IssuerCountry>
<BankName></BankName>
<hashValue></hashValue>
</PaymentResponse>
| Variable | Data Type | Length | Description | Remark |
|---|---|---|---|---|
| version | Character | 5 | Version of the payment request | - |
| timeStamp | Character | 22 | Date and time of request message | Request DateTime in format of 'ddMMyyHHmmss' |
| merchantID | Character | 15 | Merchant ID | Payment request merchant ID. Provided by 2c2p. |
| subMerchantID | Character | 15 | Sub merchant ID | Payment request sub merchant ID. Provided by 2c2p. |
| respCode | Character | 2/3 | The code whether the transaction is successful or not. | For Card / Third Party Payment 00 = Approved; 05 = Do Not Honor; More detail at Response Code For 123 Payment 001 = Success(Pending); 000 = Success(Paid);More detail at 123 Result Code |
| pan | Character | 16 | Masked Credit Card Number | First 6 and last 4 digits of credit card number. Example : 444411xxxxxx1111 |
| amt | Numeric | 12 | The amount that the customer want to convert. The amount from the Pay Request XML. | The amount will be padded with 0 from the left and include no decimal point. Example : 1.00 = 000000000100 1.50 = 000000000150 |
| uniqueTransactionCode | Character | 20 | Invoice No. The invoice no from the Pay Request XML. | Provided by Merchant. The invoice number needs to be unique to trace the transaction. Please pad 0 to the left in the case of generated invoice number length is shorter than 20. |
| tranRef | Character | 28 | Transaction Reference for the Payment Routing System. | Issued by System. This is to trace the transactions in the Routing System. |
| approvalCode | Character | 6 | Transaction Approval Code from Credit Card Host | - |
| refNumber | Character | 15 | Transaction Reference Number from Credit Card Host. | - |
| eci | Numeric | 2 | ECI value. | - |
| dateTime | Numeric | 14 | Process Date Time value with ddMMyyHHmmss format | - |
| status | Character | 1-3 | Last status of transaction | Refer to Transaction Status For 123, refer to 123 Result Code |
| failReason | Character | 100 | Reason of failure | Refer to Response Code |
| userDefined1 | Character | 150 | User defined info from request message | - |
| userDefined2 | Character | 150 | User defined info from request message | - |
| userDefined3 | Character | 150 | User defined info from request message | - |
| userDefined4 | Character | 150 | User defined info from request message | - |
| userDefined5 | Character | 150 | User defined info from request message | - |
| storeCardUniqueID | Character | 20 | Unique ID of store card info. | Unique ID of store card info will be generated by process if 'storeCard' parameter is set to true. |
| recurringUniqueID | Numeric | 20 | The unique id of recurrent payment cycle. | The id will be generated by 2C2P if merchant set the recurring parameters. |
| paymentChannel | Numeric | 3 | Payment Channel | This is for 123 payments. Payment channel codes: 001 = Credit and debit cards002 = Cash payment channel 003 = Direct Debit004 = Others |
| backendInvoice | Character | 12 | Invoice No | This field is only applicable to 123 Payment Channel. Invoice No send to 123 system. |
| paidAgent | Character | 30 | Agent Code | This field is only applicable to 123 Payment Channel, for other payments it will be blank. This is the paidAgent from 123 system. |
| paidChannel | Character | 30 | Channel Code | This field is only applicable to 123 Payment Channel, for other payments it will be blank. This is the paidChannel from 123 system. |
| IssuerCountry | Character | 2 | Card Issuer Country | This field is only applicable to 123 Payment Channel, for other payments it will be blank. |
| BankName | Character | 50 | Card Issuer Bank | This field is only applicable to 123 Payment Channel, for other payments it will be blank. |
| hashValue | Character | 150 | Hash value computed by HMACSHA1 with secret key provided by 2C2P System. | Signature String is merchantID + tranRef + amt |