PHP Example - REST (JSON)

Simple Refund Operation

Return to the Home Page

URL Fields

Order and Transaction IDs are required and used to calculate the URL along with the version and merchant ID. In your integration, you would calculate these fields within your code (process.php based on this example) and not expose these to the card holder on this page, or pass them as hidden fields.

version
order.id
ID of the existing Order to refund against
transaction.id
ID of the transaction that will be created

 Transaction Fields

method ** See Note 1 Below
apiOperation
transaction.amount
transaction.currency

Note 1: This field is used by this example to set the HTTP Method for sending the transaction. In your integration, you should determine the HTTP Method in your code (process.php based on this example) and never display it to the card holder or pass it as a hidden field.