Opencart Integration Kit for the Kyash Payment Gateway. This extension is OCMod based, hence your core files are not directly modified.
- Login to Opencart Admin.
- Go to
Extensions
->Extension Installer
. - Upload the opencart_kyash.ocmod.zip file.
- Go to
Extensions
->Modifications
. - Hit Refresh on the top right corner.
- Go to
Extensions
->Payments
. - You should see Kyash as one of the options there.
- Click Install.
- Login to your Kyash Account.
- Go to Settings.
- Login to your Opencart Admin.
- Go to
Extensions
->Payments
. - Click Edit.
- Enter the credentials listed on your Kyash Account Settings. There are two types of credentials you can enter:
- To test the system, use the Developer credentials.
- To make the system live and accept your customer payments use the Production credentials.
- Copy the Callback URL listed in Opencart Settings and set it in your Kyash Account settings.
- Place an order in your Opencart store.
- Pick Kyash - Pay at a nearby shop as the payment option.
- Note down the KyashCode generated for this order.
- In a live system, the customer will take this KyashCode to a nearby shop and make the payment using cash.
- But since we are testing, Login to your Kyash Account.
- Enter the KyashCode in the search box.
- You should see a
Mark as Paid
button there. - Clicking this should change the order status from pending to processing in your Opencart order details page.
If you are facing any FTP related errors while uploading and installing this extension, follow the below steps.
- Temporarily disable FTP in your Store Settings.
- Install this extension.
- Refresh the Extension Modifications.
- Now proceed towards installing the Kyash extension.
Once you have successfully installed Kyash extension, if your orders are not being marked as paid after payment is done, then follow the below steps.
- Configure the Kyash Extension using your Kyash Development API Credentials.
- Create a test order with Kyash as the payment option.
- Note down the KyashCode returned.
- Login to your Kyash account and search for the KyashCode.
- Mark it as Paid.
- Check if the order status changes from "pending" to "processing" in opencart.
- If the status has not changed, then make the following entry in your .htaccess file just after the
RewriteEngine On
entry.
RewriteCond %{HTTP:Authorization} .+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- Create another test order and mark it as paid to see if the issue is now fixed.
By default HTTPS scheme is used. If there are any SSL issue, alternatively you can use HTTP scheme as explained below.
- Go to
system
->lib
from root folder. - Open
KyashPay.php
file. - Replace this line
private static $baseUri = 'https://api.kyash.in/v1';
withprivate static $baseUri = 'http://api.kyash.in/v1';
. - Also replace
public $use_https = true;
aspublic $use_https = false;
.
Contact [email protected] for any issues you might be facing with this Kyash extension or call +91 8050114225.