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:
{
brand: "VISA",
expiry:
{
month: "10",
year: "2014"
channel: "
criterions:
[
{
name: "mode",
value: "copyandpay"
}
],
identification:
{
shortId: "0450.6xxx.9074",
uniqueId: "
},
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"
}
...