Install and Configure Magento Plugin
This section describes the procedure to install and configure the PayU Magento plugin. If you encounter any issues while integration, refer to Troubleshooting Magento integration.
Install plugin
Download the PayU plugin
PayU Plugin Version | Supported PHP Versions | PayUI Plugin Download Link |
---|---|---|
Magento v2.4.x | PHP 7.4, 8.0, 8.1, 8.2 | GitHub Location |
Magento v2.3.x | PHP 7.3, 7.4, 8.0 | GitHub Location |
Procedure
To install the PayU plugin for Magento:
- Download the PayU Plugin for Magento to the Magento version you use from the Download the PayU plugin table:
- Extract the archive that you have downloaded.
- Upload the PayUIndia folder that you find after extracting the archive to the app/code folder under Magento.
Note: If the code folder does not exist under the /app folder, create a code folder.
- Disable the cache:
- Navigate to the Magento Admin panel > System > Cache Management.
- Select all the cache types from left pane.
- Select Action and then select Disable from the drop-down list.
- Click Submit.
- Execute the following Magento commands:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
- Configure the module in the Magento Admin panel. For more information, refer to Configure Magento 2.4.
Configure Magento v2.4
After installing PayU plugin for Magento v2.4, you need to configure Magento installation as described in this section.
To configure the Magento v2.4 environment for PayU:
-
Log in to the Magento admin panel.
-
Navigate to Store > Configuration > Sales > Payment Methods.
-
Expand the Payu menu.
The Configuration page with the Payu tab selected is displayed, similar to the following screenshot:
Note: If the Payu tab is not displayed, clear the cache as described in the Install Plugin for Magento v2.x.
- Enter the configuration details as described in the following table:
Field | Description |
---|---|
Enabled | Select Yes from the drop-down list to enable the module. |
Account Type | Select PayUBiz for the account type. |
Environment | Select any of the following gateway environments from the drop-down list to which customer payment details will be redirected. ** Sandbox: This is the Test environment and no actual fund transfer will take place. ** Production: This is the Live environment. Use this value only If you select Sandbox in Transaction Mode, then use the following credentials: - Merchant id: oZ7oo9 - Salt: UkojH5TS | |
Merchant Key | Enter your production account key for the Production environment. |
Salt Key | Enter your Salt for the Production environment. For more information, refer to Generate Merchant Key and Salt. |
Reference: For more information on how to acess the Key and Salt, refer to any of the following:
- Production: Access Production Key and Salt
- Test: Access Test Merchant Key and Salt
- Click Save Config at the top-right corner.
Note:
After configuring the PayU Test environment, use the test card details to test the payment. For more information, refer to Test Cards, UPI ID and Wallets.
The configuration for the PayU plugin is complete and your customers can make payments through PayU.
Note:
PayU recommends this step to reconcile with PayU’s database after you receive the response. Verify the transaction details using the Verification Payment API. For API reference, refer to Verify Payment API..
Updated 2 months ago