Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

From Admin Welcome > open Payment Engines

...

Setup in WebVideo admin backend side

  1. 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

  2. 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-VALUEYOUR-SALT-VALUE, your account id 000000, sub-account id 0000 with encoded values.

...

  1. Login into admin backend of your WebVideo website and open Payment Engines page

  2. 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&currencyCode=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-VALUEYOUR-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:

    • Image Added
    • 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

      Image Added
  1. Click Add/Update button

...

7. From Admin Welcome > open Payment Packages

...

  1. to save values

  2. Open Admin → Payment Packages section of WebVideo

  3. Set up Payment packages - this is a pricing options available for your customers.

    1. Choose Payment System using short name selection from previous step

    2. 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

...

    1. and not just 10.

    2. 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.

    3. Click Add button
      See screenshot:

      Image Added

  1. Repeat the same for each payment options

Now lets setup on the CCBill end

...

  1. 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

...

  1. Image Added
  2. Please, make sure that created FlexForm supports Dynamic Prices:

- Click Primary button

...

- Modify existing or create a new one:

...