WooCommerce Plugin
Objective
We want to install and configure the PhonePe plugin in the WordPress environment which is
developed in PHP language and we have also used some functionality of curl in order to call the
“/pg/v1/pay” API through HTTP requests.
Note: We will first share the test credentials with the merchant so that they can perform the
transactions in the test environment. For this, the merchant needs to select "PreProd
Environment" in the "settings" option and the merchant can pay using the PhonePe PreProd
app. After checking all the scenarios, we will give sign-off to the merchant and the merchant can
go live with the prod credentials.
Download WooCommerce Plugin
Download the WooCommerce plugin from the market place: https://wordpress.org/plugins/phonepe-payment-solutions/
Quick Links
Description | Link to Refer |
---|---|
Configuration of PhonePe PG Plugin in WordPress Site | Configuration Steps |
Steps to Install the PhonePe PG plugin from the WordPress marketplace | Installation Steps |
Steps to Update the PhonePe PG plugin from the WordPress marketplace | Update Steps |
Configuration of PhonePe PG Plugin in WordPress Site
Step 1
Login to the WordPress site with admin credentials. After login, you will see the following
screen. On the left side, you can find the “ Plugins > Add New “ menu. This can be used to
upload the PhonePe Woocommerce plugin.

Step 2
Once you click on "Add New", you will be redirected to the following page. Here, you
will see the “Add Plugins” option. Now, you can choose the zip file of the PhonePe plugin to upload
the plugin.

Step 3
Once you upload the zip file, you can click on the "install now" button.

Step 4
After successful installation, you can go to the menu "Plugins > Installed Plugins".
Here, you can see PhonePe in the list of all the installed plugins. Now, Click on the "activate"
button to activate the plugin.

Step 5
After this, click on the "Woocommerce > Settings" menu and you will be redirected to
the following screen. Now, you can see the "PhonePe" option under the Payment Methods
available.

Step 6
There is a set-up button available on the same row. Click on it to set up the test/prod
credentials given by the PhonePe team and then you can save the changes.
Note: You may reach out to [email protected] to get the test credentials in case you haven’t received the same already.

Step 7
PhonePe plugin is configured now. If you go to your site and click the checkout button after
selecting the product then you will see “PhonePe” as the payment method available.

Step 8
If you click place order, then you can see a window pop-up where you can choose the
desired option to complete the transaction.


Step 9
In the back-end, we will call the Check Status API in order to know whether the
payment was successful. If the payment is successful, you will be redirected to the success
page.

Steps to install the PhonePe PG plugin for WooCommerce from the WordPress marketplace
- Login to the WordPress dashboard
- Navigate to Plugins
- Click on Add New
- In the keywords search box type Phonepe Payment Solutions
- Click on Install Now
- Click on Activate

Steps to update the PhonePe PG plugin for WooCommerce from the WordPress marketplace
- Login to the WordPress dashboard
- Navigate to plugins
- Locate PhonePe Payment Solutions
- Click on update now

Updated over 1 year ago