Adding a new payment method

  1. Create a script (which will send data to your payment processor server) with the name e.g. my_transact.php in the payments/cc_processors directory of your CS-Cart installation.
  2. Create a template file inside your administrator skin, where the payment will be configured (e.g, skins/[ADMININSTRATOR_ACTIVE_SKIN]/admin/payments_pages/cc_processors/my_transact.tpl).
  3. Insert a record into the cscart_payment_processors database table, for example:
    REPLACE INTO cscart_payment_processors (processor, processor_script,
    processor_template, admin_template, callback) values ('Your payment',
    'your_payment_script.php', 'your_payment_template.tpl',
    'your_payment_config_template.tpl', 'Y');

    where:
  4. processor - the name of your payment processor (e.g., MyTransact);
  5. processor_script - the name of PHP script in the payments/cc_processors directory, which will send data to your processor;
  6. processor_template - the name of the template, which will be displayed in the customer area at the Summary step of checkout (it should be located in the directory skins/[CUSTOMER_ACTIVE_SKIN]/customer/payments);
  7. admin_template - the template filename that you created at step 2;
  8. callback - indicates whether your processor is background or web-based. Background means that your script will post the data to processor server without redirecting to it (e.g., PayPal Pro, Authorize.Net). Web-based means that the customer will be redirected to the processor website for the payment when he/she clicks on the Place order button on the Summary page).

CS-Cart developers can integrate the software with a new payment processor on the paid basis. If you want them to do it for you, contact us via our Customer Help Desk.

Noticed an error in the article or it is not clear enough? Any suggestions to improve it? Please let us know by filling in the feedback form. Click here.