- Payment Button - Wordpress Changelog: Version 2.4.6 released for Payment Button Wordpress. This version fixes naming conflict in Razorpay section.
WordPress Plan
If you have built your website usingwww.wordpress.com, and are on a paid plan, you can directly install the Razorpay Payment Button Plugin from the WordPress Plugins store.
- Install the Razorpay Payment Button Plugin on your WordPress site.
- Create a Payment Button on Dashboard.
- Embed the Payment Button on your WordPress site.
- Set up WordPress site locally on your system.
- Create a Payment Button on Dashboard.
- Embed the Payment Button on your WordPress site.
Prerequisites
1
Step 1
Download the Razorpay Payment Button WordPress Plugin.
2
Step 2
Create a Razorpay account.
3
Step 3
Navigate to Settings → API Keys and generate API keys in the test mode.
Handy Tips
- When testing: Generate the keys in Test mode.
- To accept live payments: Generate the keys in Live mode and replace them in the Payment Button plugin settings.
Set Up a Payment Button Using Wordpress Plugin
Watch this video to see how to set up a Payment Button using Wordpress Plugin.1. Set Up WordPress Site Locally on Your System
See: Installation Steps for Windows To install WordPress on your Mac system:- Download the latest version of MAMP and install it on your Mac system. This software enables you to manage your websites locally.
- Install the downloaded file using the wizard and save MAMP in your Applications folder.
- Navigate to the MAMP folder. In the folder, click the MAMP icon:
- Click Start Server to run the server on your system. The server status appears green once they are ready.
- Click Open WebStart Page. The server starts running on your browser as shown:
- We must set up a MySQL database for the WordPress website. This is done using phpMyAdmin. a. Select the required database and click Privileges. b. Click Add user account. c. Enter the username and password, same as the WordPress account login credentials. d. Click Go.
- Navigate to the WordPress application you had downloaded.
-
Rename the
WordPressfolder. Provide a name relevant to the site you will be building/testing locally. For example,teafactory. Add theteafactoryfolder inhtdocsof your MAMP directory. -
Open the browser and type in the URL pointing to your site folder. For example,
localhost:8888/teafactory. Select the language of your choice and click Continue → Let’s Go. -
Enter your database details. Provide a name for the database, and enter
rootfor both the database username and password. Click Submit. - Provide the required general site information (which you can change later), as well as your login information in WordPress.
- Click the Install WordPress button. With this, your website is ready.
3. Embed the Payment Button on WordPress Site
To embed the Payment Button: 3.1 Download and install the Razorpay Payment Button Plugin. You can do this using either of these methods:- Download the plugin from the WordPress Plugin Directory and add the zip file to your WordPress website’s Plugins folder.
- Add the plugin directly onto your WordPress website from the Plugin page.