Yourpay's rebilling platform gives you the optimal opportunities to integrate your own subscription functionality into Yourpay's fully automated and highly advanced processing platform.
NB: Please note that you will need to use Yourpay's "Save Credit Card", "Click-And-Pay" or "Process Payment" functions to create the registration key used in the below examples.
To use this you will need a CCRG-ID created by process_payment or our payment window.
We have attached Yourpay's test account and our test CCRG. Remember to change these to your own data.
Code example can be found here.
TIP You can open the file with notepad, if you do not have an editor for viewing source code.
You need to set three variables before running the file:
$MerchantID = "60004771"; // Your Yourpay merchantid
$subscriptioncode = "4669.1265.8082"; // Your CCRG identification created by process_payment or our payment windows, when you request CCRG to be activated
$amount = "200"; // Amount to be captured on consumers credit card. 100 = 1 EUR/DKK/SEK, 1000 = 10 EUR/DKK/SEK
When you have filled in the variables with your data and you run the file, you get a response like this:
If you got the status "ACK" you will be able to find your payment in the Yourpay dashboard under captured payments.