Subscriptions
The subscription option is used when you wish ClickandBuy to make regular charges to customer accounts for access to your service (e.g. daily, weekly, monthly or annual charges).
Downloads
Usage of subscriptions
The subscription feature can be used in a session based model to control access to digital content for long periods of time, or as a transaction based model to simply take payment if your system utilizes its own access/session management.
Please read the above subscriptions manual for details on how to configure a new subscription in your ClickandBuy account.
Session Management Subscriptions
- Always place premium content in its own directory.
- No links other than the ClickandBuy links may point to such a premium directory, since this would make correct billing impossible.
- Secure the directory that contains your premium content against unauthorized access using htaccess or IIS directory security
- ClickandBuy purchase links should be mapped to an absolute content URL.
Transaction System Subscriptions:
Example scripts
Example PHP subscription script
Example ASP subscription script
- You are first required to host a transaction processing script on your web server. The target URL of this script needs then to be set against a ClickandBuy Subscription link in your merchant account service area. An example script can be downloaded above.
- At the point of sales the customer is to be redirected to your ClickandBuy Subscription URL to confirm the payment.
- When the customer chooses to confirm payment we execute the target URL of your Transaction Link in the ClickandBuy web proxy and return purchase confirmation data to you in the Server Header and query string
- Your target URL must evaluate this data and order ClickandBuy to commit or reject the transaction
- Transaction committal/rejection is achieved with an absolute redirect away from the ClickandBuy web proxy to a landing page hosted on your website
- This redirect must include a Success String parameter ‘result=success’ which is used as a server handshake to commit the transaction and charge the customer. Alternatively Success String ‘result=error’ can be included to reject and discard the transaction in cases where bad/missing data is returned
Troubleshooting
”Transaction error, no redirect location specified”
This indicates a fault with your hosted transaction script. It can mean either:
- The ClickandBuy web proxy does not have access permission to execute your target URL. Check your firewall or directory security settings.
- The target URL script fails at some point (syntax error or db access fault)
- The script writes html output to the browser. Please ensure your script contains no PHP echo or ASP Response.Write commands.
- The final redirect specified is not to an absolute URL on your server.
- The script is not located at the URL defined for that link.









