Delete Payment

Du er her:
Anslået læsetid: 1 min

Here is how to delete a payment using our API function ‘delete_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.

When you run the code by uploading it to your server and navigating to it, you are presented with the following input form:


Here is a table expaining how to fill out the form:

The request parameters are written in italic

Name Description
Merchant Token (token) Your merchant token provided by Yourpay. You can find this in settings in our admin portal.
TransID (transid) The ten diget transaction id from when the payment was created. You can find this with our API function ‘payment_data’ or through our admin portal in payment information.

When you submit if everything is filled out correctly, you get a JSON response telling you that the payment was deleted.