...
From Admin Welcome > open Payment Engines
...
Setup in WebVideo admin backend side
Before starting with CCbill configuration you need to find out 4 values: Flex form ID,Salt value, your account id, and sub-account id from your CCBill account. Those values will be required for the next steps
Salt value may contain special characters and before using it in our configuration you need to URL Encode it to make sure it is passed correctly in URL as a value.
Here is how you can do that.
Info |
---|
To get the Salt value, you need to write to CCBill technical support. They will provide a ready-made value or offer to come up with a new one. |
Encode them using this link.
before encode:
...
after encode:
...
Info |
---|
Example Db23%mn/?11 was changed to Db23%25mn%2F%3F11, but sometimes it might not change. |
3. In the configurational URL replace YOUR-FLEX-FORM-ID-VALUE, YOUR-SALT-VALUE, your account id 000000, sub-account id 0000 with encoded values.
...
Login into admin backend of your WebVideo website and open Payment Engines page
Add new Payment Engine or replace existing with following values from screenshot
Name: CCBill Flex form
Short name: CCBill
Description: Pay by Credit Card
URL: https://api.ccbill.com/wap-frontflex/flexforms/YOUR-FLEX-FORM-ID-VALUE?clientAccnum=
...
123456&!salt=YOUR-SALT-VALUE&clientSubacc=1234&initialPrice=%package_ext_id%&initialPeriod=3¤cyCode=840&formDigest=MD5(%{initialPrice}%{initialPeriod}%{currencyCode}%{!salt})&language=English&customer_fname=%customer_first_name%&customer_lname=%customer_last_name%&address1=%customer_address%&city=%customer_city%&state=%customer_state%&zipcode=%customer_zip%&country=%customer_country%&email=%customer_email%&x_customerid=%customer_id%&x_packageid=%package_id%
asd
Replace bold values with your actual values for YOUR-FLEX-FORM-ID-VALUE, YOUR-SALT-VALUE, client account number 123456 and sub-account number 1234.
If you want to change
...
payment currency replace three‐digit currency code
...
840
...
in the configurational URL with
...
a value of your choice:
...
4. Fill new payment system form with the correct values:
Cancel URL: https://www.google.com/
(put any URL it is unused here)Required Params: leave empty
Callback Handler: org.softservice.web.CcBillCallbackPage
...
Screenshot of how it should be looking
Click Add/Update button
...
7. From Admin Welcome > open Payment Packages
...
to save values
Open Admin → Payment Packages section of WebVideo
Set up Payment packages - this is a pricing options available for your customers.
Choose Payment System using short name selection from previous step
Select amount to charge the customer’s credit card in selected currency (USD by default).
The PackageID must contain a decimal part, for example, 10.00
...
9. Click Add button
10. Make sure the new price package appeared on addfunds page for a customer
...
and not just 10.
Insert amount to credit user (in credits or tokens). For example you can add 100 credits in WebVideo for the payment of 10.00 which mean a user will receive 100 credit by paying $10.
Click Add button
See screenshot:
Repeat the same for each payment options
Now lets setup on the CCBill end
...
In Account Info → Subaccount Admin → Advanced put following ca https://www.YOUR-WEBSITE-NAME.com/exec/ccbillcallback as an URL for processing postback from CCBill
Info |
---|
This setting can be found here: Account Info → Subaccount Admin → Advanced |
...
Please, make sure that created FlexForm supports Dynamic Prices:
- Click Primary button
...
- Modify existing or create a new one:
...