...
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 Optional: create 2 different subaccounts if you need to split one time and recurring transactions between different subaccounts.
For every subaccount 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.
...
In the website settings your-domain/admin/settings/payments add a new Payment method CCBillFlexForm;
Fill in:
a. Account ID;
b. One time Sub Account ID;
c. Recurring Sub Account ID; (could be same as one time or separate depending on your needs)
d. FlexForm ID;
de. Salt Key (you can find it in your CCBill settings Account Info → Sub Account Admin → --Advanced → Encryption Key);Click “Save”;
FlexForm is configured.
...