Setting up a CCBill account
Go to FlexForms Systems → FlexForms Payment Links;
Create a FlexForm with Dynamic Price. (Dynamic Price should be activated by CCBill support);
Configure Approve redirect;
You need to open a FlexForm in a Sandbox, and then click “Promote to Live”
Approve URL: https://your-domain/payments/ccbillflexform/thankyou.html?result=success
// Replace your-domain with your actual domain address;Configure Webhooks here: Account Info → Sub Account Admin → Webhooks;
You need to add two webhooks:
Webhook URL - https://your-domain/api/payment-systems/ccbill-flexform/webhook/sale
Webhook Format - JSON;
Event types - CrossSaleSuccess, NewSaleSuccess, UpSaleSuccess;Webhook URL - https://your-domain/api/payment-systems/ccbill-flexform/webhook/rebill
Webhook Format - JSON;
Event types - RenewalSuccess;
// Replace your-domain with your actual domain address.
Setting up a CCBill account in the website settings:
In the website settings your-domain/admin/settings/payments add a new Payment method CCBillFlexForm;
Fill in:
a. Account ID;
b. Sub Account ID;
c. FlexForm ID;
d. Salt Key (you can find it in your CCBill settings Account Info → Sub Account Admin → --Advanced → Encryption Key);Click “Save”;
FlexForm is configured.
Notify ccbill support to enable CORS from your website
Send them your website url and request to enable CORS requests sent to https://api.ccbill.com/payment-tokens/merchant-only payment url