Suppose I have 100 customers and 60th customer will facing a problem from my services and He want to refund all the money he paid for the service then which json data merchant will send that it will refund the money to the 60th customer. The below json Now I'm sending but I don't know how it will identify that the customer is 60th:-
{
"createTransactionRequest": {
"merchantAuthentication": {
"name": "4d1n246bZH3",
"transactionKey": "5U4j557r75FKNLdF"
},
"transactionRequest": {
"transactionType": "refundTransaction",
"amount": "15000.00",
"payment": {
"creditCard": {
"cardNumber": "4111111111111111",
"expirationDate": "2020-12"
}
}
}
}
}
Solved! Go to Solution.
12-28-2018 02:43 AM - edited 12-28-2018 02:45 AM
Hello @puneetjindal30
Each successful transaction will include a unique Transaction ID which you should store in your system with each order. If a refund is necessary, find the Transaction ID for that order and use it for a refund instead of the card number.
Richard
12-28-2018 05:42 AM
Hi @puneetjindal30,
The refund can be done in two ways, one against the transaction which was done and for that you need to send the transaction id as mentioned by @RichardH. This is the standard way of doing a refund.
But sometimes it might happen that due to some reason cannot find the transaction ot the customer cc has changed, and the merchant just need to refund against the customer's current card and for that the merchant just need the card number and thats the request sample you are looking at. Also to note, this may or may not be enabled for the merchant depending on the configuration.
Hope this Helps!
Kaushik
01-01-2019 10:02 PM
Hello @puneetjindal30
Each successful transaction will include a unique Transaction ID which you should store in your system with each order. If a refund is necessary, find the Transaction ID for that order and use it for a refund instead of the card number.
Richard
12-28-2018 05:42 AM
Hello @RichardH
But it also give me success response while I'm not mentioning the transaction id. Then How I will guess or sure that which customer will get refunds?
Puneet
01-01-2019 07:38 PM
Hi @puneetjindal30,
The refund can be done in two ways, one against the transaction which was done and for that you need to send the transaction id as mentioned by @RichardH. This is the standard way of doing a refund.
But sometimes it might happen that due to some reason cannot find the transaction ot the customer cc has changed, and the merchant just need to refund against the customer's current card and for that the merchant just need the card number and thats the request sample you are looking at. Also to note, this may or may not be enabled for the merchant depending on the configuration.
Hope this Helps!
Kaushik
01-01-2019 10:02 PM
Hi @kikmak42
Thanks for replying me, I have an doubt is that the card number is of the customer if the merchant doesn't have transaction id? second doubt is there is only two ways you told nothing else?
Puneet
01-01-2019 10:08 PM
Yes the card number is of the customer.
Two ways I meant one with TransactionId and one without.
Also a small note, refund(with transId) can be done for transactions which are settled state only, it cannot be done if the transaction is in Authorized or Captured state. So, for unsettled transaction you will need to do a Void.
Happy Coding!
Kaushik
01-02-2019 01:02 AM
I have a question regarding refunding transactions where credit card is now expired. The original transaction was successful, now when trying to refund it seems I am unable. Is that expected?
11-08-2023 11:02 AM