- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
making refund buttons via authorize.net api
Hello
have a question in regards to when doing a refund for a transaction via API
for example, i want to make a refund button on my website, so if i wanted to issue a customer a refund, i would go into the order record and the refund button would be there,
if click the refund button, the refund would be issued in full amount to the customer for that order? or would a pop up come out asking me to input the amount of the refund?
i want it in a way where it is a button that when you click it, it then automatically issues the refund in full to the customer without having a popup come up asking to input the amount, is this possible?
โ06-24-2018 03:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ampac,
Thanks for using Authorize.net APIs.
For a refund transaction, authorize.net API require amount , original transaction id and payment method used in the original transaction like credit card or bank account details
https://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction
In order to design a button to issue full refund on click, you will have to pass above mentioned fields in the API call.
If you have those details as part of order record you can pass them in refund API call on button click or you can use https://developer.authorize.net/api/reference/index.html#transaction-reporting-get-transaction-detai... to get details from original transaction and then make a refund call .
This will avoid extra pop up asking for amount.
Please let me know if you have any further questions.
Thanks,
Richa
โ07-06-2018 10:40 AM