Download the PHP package razorpay/magento without Composer

On this page you can find all versions of the php package razorpay/magento. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento

Razorpay Payment Extension for Magento

This extension utilizes Razorpay API and provides seamless integration with Magento, allowing payments for Indian merchants via Credit Cards, Debit Cards, Net Banking, Wallets and EMI without redirecting away from the magento site.

Installation

Install through the "code.zip" file

bin/magento is executable command, this is to be executed from Magento installation directory.

  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 following command to enable Razorpay Magento module:

  5. Run following command to install Magento cron jobs :

  6. Run bin/magento setup:di:compile to compile dependency code.
  7. Run bin/magento setup:upgrade to upgrade the Razorpay Magento module from the Magento installation folder.
  8. 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.
  9. Run bin/magento cache:flush once again.

OR

Install the extension through composer package manager.

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

You should be able to see Razorpay_Magento in the module list

Execute following commands from Magento installation directory:

Go to Admin -> Stores -> Configuration -> Payment Method -> Razorpay to configure Razorpay

If you do not see Razorpay in your gateway list, please clear your Magento Cache from your admin panel (System -> Cache Management).

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:

Working with GraphQL

Razorpay GraphQL Support added with Magento ver. 2.3.6

Order flow for placing Magento Order using Razorpay as payment method with GraphQL

  1. set Payment Method on Cart

  2. Place Magento Order

  3. Create Razorpay Order ID against the Magento Order ID and the checkout page URL as referrer.

  4. Use Razorpay Order ID rzp_order_id and other details from step-3 and create frontend form using razorpay's checkout.js , complete the payment and obtain razorpay_payment_id & razorpay_signature https://razorpay.com/docs/payment-gateway/web-integration/standard/

  5. Save Razorpay Response Details against Cart after payment success with Magento orderID, RZP paymentId , orderId and signature

  6. Pass the Magento Order ID to reset the cart.

Upgrade Razorpay plugin through composer

If you are an existing user, you can upgrade the Magento extension using the composer. Enter the command given below:

Using Custom Order Status in Razorpay Magento

Step 1: Create Custom Order Status

Step 2: Un-assign existing status

Step 3: Assign an order status to a state

Step 4: Using Custom order status for Razorpay Magento

Uninstall OR 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

If composer is used for installation, use following commands from Magento installation directory to uninstall Razorpay Magento module

If code.zip is used for installation, to uninstall following steps can be used: Disabled Razorpay Magento module

To remove module directory, execute following command from Magento install directory

Remove module schema from MYSQL database

Re-Install Razorpay Magento

To install Razorpay Magento module, follow installation steps provided at this release document. Following are previously released versions 3.7.5 and 4.0.4.

FAQ

How to upgrade plugin using code.zip?

Download the latest code.zip and replace all the contents of the code folder with the new code.zip content. Then follow the same steps which are there for installation through code.zip.

Support

Visit https://razorpay.com for support requests or email [email protected].


All versions of magento with dependencies

PHP Build Version
Package Version
Requires php Version 7.*|^8.1
razorpay/razorpay Version 2.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package razorpay/magento contains the following files

Loading the files please wait ....