Home Payment methods Adding a new payment method
Adding a new payment method
- 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.
- 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).
- 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: - processor - the name of your payment processor (e.g., MyTransact);
- processor_script - the name of PHP script in the payments/cc_processors directory, which will send data to your processor;
- 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);
- admin_template - the template filename that you created at step 2;
- 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.
