Create Your Own Payment Window

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

You can create your own payment window through Yourpay. Please be aware that higher PCI-
compliance may be required when you use this service.

You can find a code example here!

TIP You can open the file with notepad, if you do not have an editor for viewing source code.

If you run the code example you are presented with a form which looks like this:


If you look for the name of the parameters they can be found in the forms fields.

After you have filled in the form and submitted it, you will receive a JSON response, with a status message either “ACK” if the payment was processed successfully or “NOK” if the payment was rejected. Here’s an example of a response:


In this case CCRG is null because I did not set it to 1 in the input field. “Chained” & “chained2” can also be ignored in this case as it is only relevant if you split the payment over multiple recipients.

You should now be able to see the payment in your Yourpay dashboard.