CCBill

Top  Previous  Next

To use your CCBill account to process payments with AShop you will need to ask CCBill to enable dynamic pricing and create a form for you where the username and password option and the number of days a customer has access is disabled. They will provide a form name and a security code which they call "salt".

 

Set the Postback URL in your CCBill account to: http://www.yourdomain.com/order.php where "yourdomain.com" should be replaced with the URL to your AShop.

Set the Approval URL to your thank you page, which you will need to create manually since the dynamic thank you message feature in AShop does not work with CCBill. Just use any web page design tool to create a new web page, for example thankyou.html, and upload it to your site, then use the URL to this page.

 

Once you have your form setup in your CCBill account, create a payment option in your AShop admin panel on the page Configuration->Payment. Enter your account name in the box Merchant ID. Enter the salt and form name, separated with a pipe character, in the Security Secret box, for example: 3374676hdhj3737|00h9

 

Recurring Billing

To use the recurring billing features of CCBill you will need to set the recurring price of your products. This is the price that the customer will be charged monthly, starting 30 days after the initial payment, while the price you set in the "Price" box is the initial payment. You can set this option by opening the page Edit Catalog, locating the product and clicking Edit, or by adding a new product using the New Product button at the top of the page.

 

Note! This option will only be available if you have already configured a CCBill payment option.

 

By default AShop will charge your customer every 30 days for as long as the subscription is not manually ended by you or by the customer through CCBill. You can change the billing period by editing the file admin/gateways/ccbill.gw. The $ccbill_initialperiod variable controls the period between the initial payment and the first recurring payment. The $ccbill_recurringperiod variable controls the period between the recurring payments. The $ccbill_rebills variable controls how many times the customer is charged. Setting this to 99 will make it continue indefinitely.