Payment Gateway integration in Opencart - php

I want to integrate CitrusPay (An indian payment gateway) in my opencart application. I have received a PHP integration kit but don't know where to start in opencart. Please let me know how to add Citruspay as a payment method.

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.
Take a backup of your existing Opencart installation incl. Mysql Database, before installing a new module.
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.
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.
Click Install option in the right to install the module in Opencart engine.
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.
Now click save and customer will get Citrus Payment® Instant Checkout in checkout process.

Related

Woocommerce SFTP Download link not appear in email after complete purchase

Problem
While purchase digital products the download link is not list in email and order complete page.
My Analysis
I have completed one e-commerce application using woocommerce. Previously the site was on http:// with FTP and working well. Now site is shifted on live environment. site has SFTP now.
Orders are not saved into _woocommerce_downloadable_product_permissions table. But while http:// order saved into this table.
I have checked the apache logs and it shows this type of error log.
Cline denied by server configuration /var/www/html/site/wp-content/uploads/woocommerce_uploads/2017/09/file.pdf
Are there any file configurations that i missed?
However this is perfectly work for the Debit card transaction but not work for the paypal. i have asked to paypal that i missed any confugration accrding to woorocmmerce documentation, they told me configuration in paypal are correct.
IPN and PDT (payment data transfer).

How to fix could not connect to host in checkout page in Joomla using Red shop

I am working in a Joomla website which use Red shop for his store. Everything works fine, after i update joomla to 3.5.1 the payment module Credit Card (Visa and MasterCard only) is not working.
When a user go to cart page and give the card deials and click in checkout it shows "0 Error Could not connect to host"
redshop_payment/rs_payment_scnet/rs_payment_scnet.php
It seems that you are trying to open a remote URL from your application. For security reasons, many PHP instances do not allow that, and so you must ensure that allow_url_fopen is enabled in your php.ini file (note that Apache must be restarted after you enable it).
If the issue still persists, then please post the relevant content of the problematic file here.

Products And Order Status Missing In Order Section Backoffice

Certain orders placed by customer is missing order status (eg: Shipped, Awaiting seller send goods, Payment acceped etc) is missing. It shows blank section in the corresponding column only for certain orders.
When I check the details of these particular orders only sum of order can be found. The detail regarding which all products was ordered is missing from the order details page in the back-end.
I am using prestashop version: 1.6.0.14
Is there any to avoid this issue or recover such orders ? I searched for a solution and I couldn't find the solution.
Please help.
if you are using Prestashop 1.6.x.x out of the box with trusted modules this problem should never happen. How to fix:
Check all payment modules (credit card, paypal) are up-to-date and are designed for 1.6.x prestashop versions. Payment modules are responsible for udating order status once payment is validated, so it's highly possible to get the problem here.
Check your payment-modules configuration parameters (shop, gateway, IPN, etc...)
Clear Prestashop cache.
Disable non-core modules and check the problem again. It could be due a 3rd party module.
Try to physically delete payment modules (via ssh or ftp) and reinstall them again from scratch.
Try to update Prestashop to latest stable release and also each native module.
NOTE: This error has been reported using PS 1.6.x and several modules like "Paypal" or " Universaly Payment Module" with unknown solution till the moment.
https://www.prestashop.com/forums/topic/459533-order-status-not-added-to-order-also-ordered-products-missing-from-list/
So if it's your case I recomend you to switch to native modules (bankwire, credit card, paypal...) until the problem becomes solved.

I want to integrate an existing app with quickbooks, but don't want to publish it

I have developed a PHP application that receives input from Sales Managers and is analyzed in the application. The Admin user of this app wants to be able to look at the sales/estimates that are posted to the app and sync the data with his online Quickbooks account.
I downloaded the quickbooks-php sdk from github (https://github.com/consolibyte/quickbooks-php/) and I used the example app folder and figured out everything I needed. When I read about putting this into production, all the documentation on the intuit site says that I need to publish my app to the Quickbooks Apps.com. Is it possible to only include the posting-to-quickbooks functionality in my existing app?
Or do I need to publish a stand-alone app and THEN fit that into my existing one?
When I read about putting this into production, all the documentation on the intuit site says that I need to publish my app to the Quickbooks Apps.com.
No, it doesn't.
All you need to do to go to production is click a button within your app settings on Intuit's developer site, fill out a few fields, and swap out your tokens.
Here's a copy/paste from Intuit's website that explains what you need to go to production:
What you need to go to production
To get your production keys, some basic app details need to be in place. Make sure you've completed the following fields on your app's Development Settings tab:
Application Name
End User License Agreement URL
Privacy Policy URL
App URL
Host Name Domain
Disconnect Landing URL
Notice that no-where in that list does it say you need to "publish to Apps.com".
If you wanted to publish to Apps.com you could. But it's not mandatory. Just click the tab in your app settings and fill out the fields. If they don't apply to you, just make them up and put a random URL in.
Is it possible to only include the posting-to-quickbooks functionality in my existing app?
Yes, of course.

Moneybookers extension in Magento not working

I am using Magento 1.7.0.2 with custom theme and I am trying to setup Phoenix Moneybookers extension. On my localhost (XAMPP on Win 7) is everything working as it suppose to, but on my hosting it is not working at all.
In 4th step of checkout (Payment Information) are payment method images and instructions not loading and what is even worse, when I click Place Order button it redirects me to "http://mydomain.com/moneybookers/processing/payment/" where is just an empty page (with menus, footer ...) with no payment options(no Skrill iframe).
On my localhost it redirects me to "http://magento.localhost.com/moneybookers/processing/payment/" with successfully loaded Skrill iframe.
I have tried ideas from http://www.magentocommerce.com/boards/viewthread/55163/P0/ but with no success.
Thanks in advance for your ideas.
1) I'd start by stop using Windows for development; Then,
2) Check your browser (inspect element) to see if you forgot to push anything to live env;
3) In your server, check in Magento_Root/var/log/system.log which errors Magento is issuing;
4) Now check the logs of your Apache/Nginx and PHP. Usually on /var/log/name-of-application/
I hope it helps.
Could you disable and enable the MoneyBookers extension block from the admin panel. Try reindexing the database after this.
Also check the manual for installing MoneyBookers, as you might missed to pass some element on the live site

Categories