Contents

Processing subscriptions

 

Your system will need to send a request to the Payment Pages that both processes a standard authorisation payment (this can include 3-D Secure) and also instructs the subscription engine to schedule future payments. This can be achieved in a single POST to the Payment Pages.

 


 

Sending the request

The following example demonstrates how to process a subscription payment by performing a POST to the Payment Pages:


<html>
<head> 
</head> 
<body> 
<form method="POST" action="<DOMAIN>/process/payments/choice"> 
<input type="hidden" name="sitereference" value="example32075"> 
<input type="hidden" name="currencyiso3a" value="GBP"> 
<input type="hidden" name="mainamount" value="10.00">
<input type="hidden" name="stprofile" value="default"> 
<input type="hidden" name="version" value="2"> 
<input type="hidden" name="subscriptionunit" value="MONTH">
<input type="hidden" name="subscriptionfrequency" value="1">
<input type="hidden" name="subscriptionfinalnumber" value="12">
<input type="hidden" name="subscriptiontype" value="RECURRING">
<input type="hidden" name="credentialsonfile" value="1">
<input type="submit" value="Pay"> 
</form> 
</body> 
</html>

Replace <DOMAIN> with a supported domain. Click here for a full list.