My2c2pSDKResponse - Response Object
The My2c2pSDKResponse
class is the response class returned from the library for all the requests.
Methods Summary
No. | Method name | Return Type | Description | Remarks |
---|---|---|---|---|
1 | getAmount() | String | The amount that the customer want to convert. The amount from the PayRequest XML | - |
2 | getApprovalCode() | String | Transaction Approval Code from Credit Card Host | - |
3 | getDateTime() | String | Process Date Time value with 'yyyyMMddhhmmss' format |
- |
4 | getEci() | String | ECI value | - |
5 | getFailReason() | String | Reason of failure | Refer to Transaction Status |
6 | getMerchantID() | String | Merchant ID | Payment request merchant ID. Provided by 2c2p. |
7 | getPan() | String | Masked Credit Card Number | First 4 and last 4 digits of credit card number Example: 4444xxxxxxxx1111 |
8 | getStatus() | String | Last status of transaction | Refer to Transaction Status. For 123, refer to 123 Result Code. |
9 | getStoreCardUniqueID() | String | Unique ID of store card info | Unique ID of store card info will be generated by process if 'storeCard' parameter is set to true |
10 | getRaw() | String | Raw data (base64 and pkcs7 encrypt) from server response |
- |
11 | getRecurringUniqueID() | String | The unique id of recurrent payment cycle | The id will be generated by 2c2p if merchant set the recurring parameters. Will only response at recurring is enabled. |
12 | getRefNumber() | String | Transaction Reference Number from Credit Card Host | - |
13 | getRespCode() | String | 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 |
14 | getTranRef() | String | Transaction Reference for the Payment Routing System | Issued by System. This is to trace the transactions in the Routing System. |
15 | getTimeStamp() | String | Date and time of request Message | Requst DateTime in format of 'ddMMyyHHmmss' |
16 | getUniqueTransactionCode() | String | Invoice No. The invoice no from the PayRequest | - |
17 | getUserDefined1() | String | User defined info from request message | - |
18 | getUserDefined2() | String | User defined info from request message | - |
19 | getUserDefined3() | String | User defined info from request message | - |
20 | getUserDefined4() | String | User defined info from request message | - |
21 | getUserDefined5() | String | User defined info from request message | - |
22 | getVersion() | String | Version of the Payment Request | e.g: 9.1 |
23 | getIppPeriod() | String | Installment period | - |
24 | getIppInterestType() | String | Interest paying body (C - Customer Pay Interest / M - Merchant Pay Interest) | - |
25 | getIppInterestRate() | String | Interest rate for Installment | - |
26 | getIppMerchantAbsorbRate() | String | Interest rate merchant co-pay for Installment | - |
27 | getPaidChannel() | String | 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. |
28 | getPaidAgent() | String | 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. |
29 | getPaymentChannel() | String | Payment Channel | This is for 123 payments. Payment channel codes : 001 = Credit and debit cards 002 = Cash payment channel 003 = Direct Debit 004 = Others |
30 | getBackendInvoice() | String | Invoice No | This field is only applicable to 123. Invoice No send to 123 system. |
31 | getIssuerCountry() | String | Issuer Country | - |
32 | getBankName() | String | Bank Name | - |
33 | getSubMerchantID() | String | Sub merchant ID | Payment request sub merchant ID. Provided by 2c2p. |
34 | getSubMerchantList() | ArrayList<SubMerchant> | Sub Merchants of Master Merchant | - |
35 | getPaymentScheme() | String | Payment Scheme | - |
36 | getProcessBy() | String | Process By | - |