How to access credit card last 4 digits from transaction response

Follow

If a merchant needs to access the credit card information from a particular transaction (for e.g. after storing a card on the Peach Payments credit card vault using an RG transaction) then they can do so through the transaction response.

The merchant needs to set the following parameter in the initial transaction request (this would vary by merchant based on the chosen method of integration. However the parameter is the same across all our integration options i.e. Copy and Pay, WPF, XML or POST) :

 

FRONTEND.RETURN_ACCOUNT=true

Once this is sent to us then the transaction response will contain extended account information for the transaction including last 4 digits of card or bank account number.

In the Copy and Pay (JSON) the part of the response with the values would appear as follows:

...
transaction:  
{

account:  
{

        bin: "411111",
        brand: "VISA",
        expiry: 
                 {
                  month: "10",
                  year: "2014"
                  },
        holder: "Joe Blogs",
        last4Digits: "1111"
      },

channel: "ff8080813dab64c0013dcaf73fce0ded",
criterions:  
[
       {
       name: "mode",
       value: "copyandpay"
       }
],
identification: 
      {
      shortId: "0450.6xxx.9074",
      uniqueId: "ff808081xxxxxx0141e5d6e89b4242"
      },
mode: "INTEGRATOR_TEST",
payment: 
     {
     clearing: 
            {
            amount: "50.99",
            currency: "ZAR"
             },
     code: "CC.PA"
     },
processing: 
     {
     code: "CC.PA.90.00",
     connectorDetails: [ ],
     reason: 
                {
                code: "00",
                message: "Successful Processing"
                },
     result: "ACK",
     return: 
                {
                code: "000.100.110",
                message: "Request successfully processed in 'Merchant in Integrator Test Mode'"
                },
     timestamp: "2013-10-23 15:02:48"
     },
response: "SYNC"
}
...

 
 
 
Have more questions? Submit a request

Comments

Powered by Zendesk