Skip to content

3.8.6-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@enishant enishant released this 04 Aug 15:03
899ba9b

Added

  • Updated instructions for setting up the cron with Magento.
  • Added notification for a new version update.

Fixed

  • Fixed removal of webhook secret from core config data
  • Fixed webhook cron order processing issue

Install through the "code.zip" file

  1. Extract the attached code.zip
  2. Go to the "app" folder
  3. Overwrite content of the "code" folder with step one "code" folder (Note: if the code folder does not exist just place the code folder from step 1).
  4. Run bin/magento module:enable Razorpay_Magento from Magento root folder.
  5. Run these commands to install and add cron jobs :
bin/magento cron:install
  1. Run bin/magento setup:upgrade to upgrade the razorpay-magento extension from the Magento root folder.
  2. On the Magento admin dashboard, open Razorpay payment method settings and click on the Save Config button.
    Note: If you see this message highlighted in yellow (One or more of the Cache Types are invalidated: Page Cache. Please go to Cache Management and refresh cache types.) on top of the Admin page, please follow the steps mentioned and refresh the cache.
  3. Run bin/magento cache:flush once again.

OR

Install through composer

Syntax for composer with version 1.x
composer require razorpay/magento <version>

Syntax for composer with version 2.x
composer require razorpay/magento:<version>

Install the extension through composer package manager.

composer require razorpay/magento:3.8.6-beta
bin/magento module:enable Razorpay_Magento

You can check if the module has been installed using bin/magento module:status

Execute following commands from Magento root directory:

bin/magento setup:di:compile
bin/magento setup:upgrade
bin/magento cache:flush

Setting up the cron with Magento

Setup cron with Magento to execute Razorpay cronjobs for following actions:

Cancel pending orders

It will cancel order created by Razorpay as per timeout saved in configuration if Cancel Pending Order is enabled.

Update order to processing

Accepts response from Razorpay Webhook for events payment.authorized and order.paid and updates pending order to processing.

Magento cron can be installed using following command:

bin/magento cron:install

Rollback to older versions

To rollback, you will be required to uninstall existing version and install a new version again. Following are actions used for rollback & reinstall:

Uninstall Razorpay Magento

php bin/magento module:disable Razorpay_Magento
php bin/magento module:uninstall Razorpay_Magento

Install Razorpay Magento

Syntax:

composer require razorpay/magento:<version_number>

version 3.7.5

composer require razorpay/magento:3.7.5

version 3.8.5-beta

composer require razorpay/magento:3.8.5-beta

Enable module Razorpay Magento

php bin/magento module:enable Razorpay_Magento

If code.zip is used for installation, Rollback can be done by uninstalling and then re-installing module, to uninstall following steps can be used:

Disabled Module

php bin/magento module:disable Razorpay_Magento

Remove Module Directory, execute command from Magento install directory

rm -rf app/code/Razorapy

Remove module schema from MYSQL database

DELETE FROM `setup_module` WHERE `setup_module`.`module` = 'Razorpay_Magento';

Install Razorpay Magento module, follow installation steps provided at release document. Following are releases for version 3.7.5 and 3.8.5-beta.

Release 3.7.5
https://github.com/razorpay/razorpay-magento/releases/tag/3.7.5

Release 3.8.5-beta
https://github.com/razorpay/razorpay-magento/releases/tag/3.8.5-beta