Payment Gateway integration in Opencart

限于喜欢 提交于 2019-12-01 18:43:41
Naveenbos

You can edit and modify these files:

/var/www/opencart/catalog/controller/payment
/var/www/opencart/catalog/model/payment
/var/www/opencart/catalog/view/theme/

You can see two folder default and other one you can place it in that other folder in that folder should have template/payments here you have put your .tpl file - PHP MVC.

Then take your admin:

/var/www/opencart/admin/controller/payment

Here you can see other payment file you have to place your admin controller file here, here you can put your admin view file /var/www/opencart/admin/view/template/payment then take your localhost/opencart/admin here you can see the extensions->payments here you can see the available payments and your file, you can install/uninstall from here

The easiest way to integrate a new payment gateway is to take a look at a current opencart payment gateway that works in a similar fashion. The Paypal pro extension comes free with opencart, and while you will need to customise it to your needs it serves as a good base for your gateway. Of course, that works based on a CC field. If you're using a third party gateway page, something more along the lines of SagePay may be of use instead

The readme document in the zip has the whole process described.

  1. Take a backup of your existing Opencart installation incl. Mysql Database, before installing a new module.

  2. Unzip the content of the module zip in a folder. Upload (FTP) all 3 folders (admin, catalog, citrus) to your Opencart root folder. Select yes when it asks for overwrite.

  3. Now in Opencart login to your admin account and go to Extensions-> Payments option. It will show you Citrus Payment® Instant Checkout as highlighted in the above image.

  4. Click Install option in the right to install the module in Opencart engine.

  5. After installation is over you will see Edit button. Click on Edit option to setup the options. (a.) Fill up Vanity/Payment Url, Merchant Access Key and API Key as provided by Citrus. (b.) Gateway Module option will be “sandbox” for sandbox/test version and “production” for live version. (c.) Change Status option to Enable or Disable to make Citrus Payment Gateway enable or disable. (d.) Give Sort Order and Order Status as per your choice.

  6. Now click save and customer will get Citrus Payment® Instant Checkout in checkout process.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!