If you need to refund a certain amount of a payment, that is very easy with our API function 'refund_payment'.
To get started look at the code example here.
TIP You can open the file with notepad, if you do not have an editor for viewing source code.
You can run the code by uploading it to your server and navigating to the file. When you run the code, you are presented with the following form:
Here is a table explaining how to fill out the form:
The request parameters are written in italic
|MerchantID (merchantid)||The merchantid that the payment belongs to.|
|Amount (amount)||The amount to refund, in the subunit of your currency.|
|PaymentID (paymentid)||The six diget id you can get from the response under the key 'tid' from when the payment was created.|
|TimeID (timeid)||The ten diget id you can get from the response under the key 'time' from when the payment was created.|
When you submit the form and everything is filled out correctly and are valid, you get a JSON response saying that the payment was refunded.