Home Payment methods Integrating CS-Cart with a new payment gateway
Integrating CS-Cart with a new payment gateway
- Create a script (which will send data to your payment processor server) with the name e.g. your_payment_script.php in the payments/cc_processors directory of your CS-Cart installation.
- Create a template file inside the directory of your administrator skin, where the payment will be configured (e.g, skins/[ADMININSTRATOR_ACTIVE_SKIN]/admin/payments_pages/cc_processors/your_payment_template.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 ('MyPayment', 'your_payment_script.php', 'your_payment_template.tpl', 'your_payment_config_template.tpl', 'Y');
where:- processor - the name of your payment processor (e.g., MyPayment).
- processor_script - the name of PHP script in the payments/cc_processors directory, which will send data to your processor server.
- processor_template - the name of the template, which will be displayed at the Summary step of checkout in the storefront (it should be located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/payments directory).
- admin_template - the name of the template that you created at step 2.
- callback - indicates whether your processor is background (Y) or web-based (N). 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 in CS-Cart storefront.
CS-Cart developers can integrate the software with a new payment processor on a paid basis. If you want them to do it for you, contact us via our Customer Help Desk.
