How to Set Up Payment Gateway in WordPress?(4 Methods)

How to Add Payment Gateway in WordPress

Curious to know how to set up a payment gateway in WordPress? Then, you’ve just entered the right place.

Unfortunately, the WordPress core doesn’t provide options to help you accept payments directly from your website. But there’s nothing to worry about as plenty of plugins and tools are available to help you with that.

Thus, in this article, we’ll be using different payment plugins like Everest Forms, User Registration, and more to show you how to add a payment gateway to WordPress websites. 

Hence, keep reading!

What are the Popular Payment Gateways for WordPress?

Before we begin, lets’ first briefly discuss the payment gateways available for WordPress. 

To put it simply, payments gateways are the third-party services that you integrate on your site to let your customers securely pay for the products and services they purchase. So, they act as a bridge between your customers, your website, and the payment processor.

You can find numerous payment gateways for WordPress, and each of them comes with its own pros and cons. However, some of the globally accepted popular payment gateways that offer a secure platform for online transactions are listed below:

  • PayPal: PayPal allows you to accept payments from 202 countries and in 25 different currencies. Best of all, it provides a broad range of payment methods and even protects your business from fraud with 24-hour account monitoring and advanced encryption.
  • Stripe: Stripe is supported in 35+ countries and allows you to accept payments in 135+ currencies. It lets you accept recurring payments for subscriptions and other regular payments.
  • Amazon Pay: Integrating Amazon Pay on your site lets your customers pay for your products/services via their Amazon account. It offers a safe and secure online transaction as everything is tracked in the Amazon account.
  • Authorize.net: Easy, fast, and secured payment gateway Authorize.net also provides you with multiple payment methods. You can either accept credit card payments or payments via eCheck.
  • Square: Square is suitable for businesses of any size or type to accept payments with anti-fraud and a layer of security. And, it offers a fast deposit meaning your fund will be transferred to your account within two business days.

Having said that, it’s time to know how to set up the payment gateways in the WordPress site now. 


How to Set Up Payment Gateway in WordPress?

Here we’ve explained four different methods to accept payments online in WordPress. However, we’ll mainly focus on setting up two flexible and most popular payment gateways, i:e PayPal and Stripe in WordPress. So, let’s begin!

Method I. Using Everest Forms Plugin

Everest Forms is one of the best form builder plugins that lets you create amazing forms using its drag and drop feature. Be it a simple contact form, complex multi-step form, or a survey form, the Everest Forms plugin is a one-stop solution for all.

Everest Forms Plugin

Similarly, it also allows you to build a payment form to accept different types of online payments (donations, registration fees, etc.) without any fuss. Curious to know how? Well, for that, you need to go through the simple steps below.

Step 1. Install and Activate Everest Forms and Everest Forms Pro

Before anything else, you need to install the plugin. For this, login to your WordPress dashboard and go to Plugins>>Add New.

Plugins to Add New Navigation

This will redirect you to the Add Plugins page. Here, type Everest Forms in the plugin search box and click on the Install Now button once it’s displayed on the screen. After that, hit the Activate button to activate the plugin on your site.

Installing Everest Forms

With this, you’ve successfully installed the free version of Everest Forms. However, you need the Everest Forms Pro to accept payments online with a payment form. 

You might ask why it is essential to install the free version then? That’s because Everest Forms Pro cannot function without installing the free version.

To purchase Everest Forms Pro, visit the official plugins page first. Then, choose a suitable plan that includes the PayPal Standard as we’ll require this addon to integrate the PayPal payment gateway later. 

Everest Forms Pricing Options Everest Forms vs Formidable Forms

After purchasing the premium plugin, you can log in to your user account. Then, click on the Downloads tab from your accounts dashboard and download the Everest Forms Pro zip file on your computer.

Downloads Tab

Also, don’t forget to copy the license key from the License Keys tab.

Copy License Key

Next, go to Plugins>>Add New similar as before and click on the Upload Plugin button from your WordPress dashboard. 

Uploading Plugin

Now, choose the zip file you’ve downloaded and click on the Install Now button. After that, activate the plugin.

Everest Forms Pro Installations

Soon after the activation, you’ll be asked to enter the license key. So, paste the license key you copied before. That’s all.

Enter License Keys

Step 2. Install and Activate PayPal Standard Add-on

The next step is to install and activate the PayPal Standard add-on. So, go to the Everest Forms>>Add-ons, search for the PayPal Standard and hit the Install Addon button.

Install PayPal Addon

After that, click on the Activate button to activate the add-on on your site. With that, you’ve all the necessary equipment, i:e Everest Forms, Everest Forms Pro, and PayPal Standard, to set up a payment gateway in WordPress.

Necessary Equipments

Step 3. Create a New Payment Form

Now, you need to create a new payment form. So, navigate to Everest Forms>>Add New.

Everest Forms to Add New

On the Add New Form page, you’ll see several form templates plus an option to start from scratch. So, you can either choose a suitable form template and modify it as per your need or start from the ground. 

Add New Form Page

Here, we’ll show you how to create a form from the start, so click on the Start From Scratch option. 

A small pop-up window opens up, suggesting you give a name to your form. So, name it as per your convenience and hit Continue.

Naming Form

A form builder window opens up where you can easily drag and drop required form fields from the left to the blank space on the right. 

Drag and Drop Fields in the Payment Form

The best part is that Everest Forms allows you to add unlimited fields to add as many form fields as you want.

Add Payment Fields

If you scroll down, you’ll see different payment fields: Single Item, Multiple Choice, Checkboxes, Quantity, and Total. As the name implies, these fields allow you to add single or multiple products, their prices, quantity, and totals to your form. 

Everest Forms Payment Fields

You can easily drag and drop the required payment field and click on the individual field to customize its settings

a. Single Item: It allows you to add a single product and display its default price. Clicking on this field takes you to the Field Options tab from where you can customize the label, description, plus add the item type description as follows:

  • Pre Defined: Setting item type as pre-defined restricts users from changing the item’s price from the front-end.
  • User Defined: Setting item type as user-defined allows users to change the item type from the front-end. 
  • Hidden: Choosing the input type as hidden hides the field when viewed from the front-end. 
Everest Forms Single Item How to Set Up Payment Gateway in WordPress

b. Multiple Choice: Adding this form field allows your users to choose an item from multiple product options. Further, you can customize this field to add labels and prices to each product. Not to mention, you can also enable image choices where you can upload images for your products.

Everest Forms Multiple Choice How to Set Up Payment Gateway in WordPress

c. Checkboxes: This field is quite similar to Multiple Choice, but it allows users to choose multiple items.

Everest Forms Checkboxes

d. Quantity: It allows your users to set the desired quantity for the chosen products. 

Quantity

e. Total: It helps you display the total of all your payment’s field prices.

Everest Forms Total Field

Once you finish adding the necessary form fields, do not forget to click on the SAVE button at the top.

Likewise, you can also set up the desired currency by navigating to the Everest Forms>>Settings and clicking on the Payments tab.

Setting Currency How to Add Payment Gateway in WordPress

Step 4. Enable PayPal Payment and Configure Settings

After that, you need to enable PayPal as the payment option and configure some PayPal Standard settings.

So, go to Everest Forms>>All Forms and click on the Payment Form you created before. 

Payment Form

Now, click on the Payments tab at the top and Enable Payment Standard. Then, enter the email address linked to your PayPal account in the PayPal Email Address field.

Enable Paypal Standard

Likewise, select the required Mode. You can choose Sandbox mode for the testing purpose; otherwise, choose the Production mode. Next, you can select the Payment Type as Product & Service, or Donation. Besides, Cancel URL allows you to redirect the URL if the user cancels after redirecting to PayPal.

Not to mention, with the release of Everest Forms 1.4.9, now you can also apply conditional logic using the Conditional Logic add-on for the payment options too. We’ll be discussing it in detail in the next section.

Note: If you want to know about the conditional logic feature in detail, click here.


Step 5. Use Conditional Logic for PayPal (Allow Users to Choose between PayPal and Stripe)

Now, suppose you’ve purchased higher plans like Professional or Agency. In that case, you can also allow your users to choose between Paypal and Stripe payment using a conditional logic feature of Everest Forms. However, you need to ensure that you’ve installed and activated both the add-ons on your site.

Firstly, insert the Multiple Choice field to your form and add PayPal and Stripe payment options as shown in the image. 

Choose Payment Option Accept Payments Online in WordPress

Next, click on the Payments tab at the top and ensure that you’ve enabled the PayPal payment gateway. Then, click on the PayPal Standard and Enable Conditional Logic feature as follows. 

Enable Conditional Logic

You can also enable conditional logic for the Stripe payment gateway similarly. But you need to set up the Stripe payment gateway with the Everest Forms first. For this, you can check out our documentation for the detailed process.

After that, users will be able to choose between Paypal and Stripe payment gateway.


Step 6. Add Payment Form to Your Site

Now that your payment form is ready, the only thing left is to add it to your site. You can add your payment form to your posts, pages, or anywhere you like. Here, we’ll show you how to add it to pages.

So firstly, copy the shortcode of your payment form at the top.

Copy Shortcode of the Payment Form

Then, navigate to Pages>>Add New from your dashboard. 

Pages to Add New

Next, provide a suitable title to your form and paste the shortcode. Finally, hit the Publish button at the top.

Publish Payment Form

Method II. Using User Registration Plugin 

As the name implies, User Registration is a wonderful plugin that allows you to create stunning registration and login forms without any hassle. And with the integration of add-ons like PayPal or Stripe, this plugin also enables you to accept registration fees and other payments via forms.

User Registration

Here, we’ll show you how to integrate payment gateway like PayPal in WordPress using the User Registration plugin. This method is super easy to accept payments online. All you have to do is follow the simple steps below.

Step 1. Install and Activate User Registration Pro

First, you need to purchase the premium User Registration plugin by visiting its official page. The PayPal Payment add-on is available in Plus and Professional plans. So, you can choose any one of them depending upon your need.

User Registration Pricing Page

After completing the purchase, you need to log in to your WPEverest user account. Then, from your accounts dashboard, go to the Downloads tab and download the User Registration Pro. It’ll be downloaded as a zip file. 

Download Tab User Registration Pro

Also, don’t forget to copy the license key from the License keys tab, as you’ll require to enter it later in the steps.

Copy License Key User Registration

Now, from your WordPress dashboard, go to Plugins>>Add New and click on the Upload Plugin button as before. 

Next, choose the zip file of the User Registration plugin and hit the Install Now button. Once the installation is complete, click on the Activate option to activate the plugin on your site.

Choose User Registration Zip File and Install

Soon after that, you’re asked to enter the license key. So, paste the license key you copied before.

Enter License Key Message

Besides, you’ll also notice the welcome message at the top with options to Install User Registration Pages. Clicking on the option automatically creates the My Account and Registration pages for your site. 

Install User Registration Pages

Also, you need to enable the membership option so that your users can register to your WordPress site from the front-end. 

For this, go to Settings>>General and scroll down to the Membership option. Now, checkmark the box to allow anyone to register. Also, don’t forget to click on the Save Changes button at the bottom once you’re done.

Enabling Membership

Step 2. Install and Activate Payments (PayPal) Add-on 

After that, go to the User Registration>>Extensions and search for the PayPal Payment add-on. Once you find it, click on the Install Addon button and finally activate it on your site.

Installing Paypal Payment

With that, you’re now all set to create a registration form with the payment fields for your site.


Step 3. Create a New Registration Form

User Registration also provides you with the default registration form. So, you can edit and modify the form as per your need and instantly add it to your site. However, here we’ll show you how to create it from the ground.

To create a registration form with payment fields, go to User Registration>>Add New

User Registration to Add New

Then, a form builder interface opens up. You can see that two essential default fields are already added to your form. 

Naming Registration Form

Now, you can begin your form-making journey by giving a proper name to your form. Here, we’ve named it the Registration Form. But you can always name it as per your need or convenience. 

After that, you can add other necessary fields like First Name, Last Name, Username, Confirm Password, and so on. You can easily add these fields by dragging them from the left and dropping them to the right and you can also reorder the fields as per your need.

Drag and Drop Fields and Reorder
Add Payment Fields

As you scroll down, you’ll also see three different Payment Fields: Single Item, Multiple Choice, and Total. Thus, adding these fields to your form allows you to display your products/services and their prices on your form.

Payment Fields User Registration

a. Single Item: It lets you display a single product item and its price. Further, you can configure the necessary settings by clicking on this field. For instance, you can change the label, description, make the field required, and even define the item type as follows:

  • Pre Defined: If you set item type as pre-defined, users won’t be able to change the items’ price from the front-end.
  • User Defined: If you set the item type as user-defined, users will be able to change the price for the item.
  • Hidden: If you choose the item type as hidden, the field won’t be displayed in the front-end. 
User Registration Single Item Field

b. Multiple Choice: It lets you display multiple items and their relevant prices. Hence, users will be able to choose from multiple items.

User Registration Multiple Choice

c. Total: It shows the total price of items/products chosen by the users.

User Registration Total Field

After adding the necessary form fields, click on the Create Form button at the top.

Also, if you want to change the currency, you can do that easily by going to User Registration>>Settings>>Payments. Then, you can choose the desired currency from the dropdown menus.

Choosing Currency Type

Step 4. Enable PayPal Payment and Configure Settings

The next step of our tutorial on how to set up a payment gateway in WordPress is to enable PayPal payment and configure the payment settings.

So, firstly navigate to User Registration>>User Registration, and click on the Registration Form you created before.

Click on the Registration Form

Then, go to Form Setting>>PayPal Standard and Enable the PayPal Payment option.

Enabling PayPal in User Registration

After that, enter the valid email address linked to your PayPal account and choose the required mode. You can select Test/Sandbox mode for testing or else select Production from the dropdown menus. 

Next, choose the Payment Type and add the Cancel and Return URL. Cancel URL is the redirect URL if the user cancels after redirecting to PayPal. Return URL is the redirect URL after the completion of the payment process.

Similarly, you can also use the smart conditional logic to let users choose between PayPal and Stripe payments. We’ll discuss it in detail in the later section. 


Step 5. Configure Login Options

You may not want to allow your users to log in until they complete the payment process. So, for this, you need to configure some settings. 

First, navigate to the User Registration>>Settings>> General. Then, from the User login option, choose Payment before login.

Payment Before Login Option

Likewise, you can also customize the front-end Payment Messages for your registered users by navigating to User Registration>>Settings>>General>>Frontend Messages.

Payment Messages

Since you’ve chosen the payment before login option, you’ll be notified about the pending and successful payments via email. You can customize your email settings by navigating to User Registration>>Settings>>Email.

Email Tab

Step 6. Use Conditional Logic for PayPal (Allow Users to Choose between PayPal and Stripe)

With this incredible WordPress registration payment plugin, you can also allow your users to choose between PayPal and Stripe payment gateways. For this, you must first ensure that you’ve activated both PayPal and Stripe add-ons to your site. 

Next, you need to add the Radio Button field to your form and add PayPal and Stripe as options to choose from. 

Choose Payment Method

After that, go to the Form Setting and click on the Paypal Standard. Then, tick on the Use conditional logic option. 

Enabling PayPal in User Registration

Similarly, you can also enable the conditional logic feature for Stripe once you configure the setup for the Stripe payment gateway. You can check out the detailed documentation for setting up the Stripe with the User Registration here. 


Step 7. Add Registration Form To Your Site 

Now that your registration form is ready, it’s time to add it to your site. So, copy the shortcode of your form first.

Copy Shortcode of the Form

Then, navigate to the pages/posts and click Add New

Posts to Add New

After that, give a title to your form and paste the shortcode. Finally, click on the Publish button at the top and make your form live. 

Publish Registration Form

Method III. Using Accept Stripe Payments Plugin

The third easy method to integrate the payment gateway in WordPress is by using the Accept Stripe Payments plugin. It allows you to accept payments online via the Stripe payment gateway. 

Accept Stripe Payments

Using this plugin, you can effortlessly add Buy Now buttons for your products/services. Also, you can add this button to posts, pages, or anywhere on your site using a simple shortcode.

And guess what? You can get this responsive plugin absolutely free from the official WordPress.org plugin page. So, here are the quick steps you need to follow to integrate this payment method on your site.

Step 1. Login to your WordPress dashboard and navigate to Plugins>>Add New.

Plugins to Add New Navigation

Step 2. Search for the plugin by typing the name in the search box, then click on the Install Now button once it displays.

Install Accept Stripe Payments

Step 3. Activate the Stripe Payments plugin.

Activate Accept Stripe Payments

Step 4. Navigate to Stripe Payments>>Settings.

Stripe Payments to Settings Navigation

Step 5. Under the General Settings tab, configure the Global Settings. The plugin will automatically create the Checkout Result Page URL and Products Page URL for you. Besides, you can also choose Currency, Currency Symbol, Button Text, etc.

General Settings for Stripe Payment

Step 6. Scroll down to add the Stripe Account Credentials.  [Note: For this, you need to have a stripe account. If you don’t have one, you can create one from here free of cost.]

Step 7. You can also enable or disable Debug option. Once, you complete the settings, hit on the Save Changes button. 

Debug Option

Step 8. After that, add your products by navigating to Stripe Payments>>Add New Product. From here, you can add the product’s title, description, price, etc.

Add New Product

Step 9. Now, go to Stripe Payments>>Products and copy the shortcode of the product. 

Copy Shortcode of the Product

Step 10. Finally, paste the shortcode to the desired pages or posts. If you look from the front-end, the Buy Button is added to your product as shown in the image below.

Buy Now Button

Now, whenever the users click on the Buy Now button, a payment form is displayed where they can enter their Name, Email, and Credit and debit card number.

Stripe Payment Form

Method IV. Using WooCommerce Plugin

The payment methods mentioned above are suitable if you’ve got limited products or services. But what if you want a full-fledged online store with a large number of products? That’s where the WooCommerce plugin comes into play.

WooCommerce Plugin

WooCommerce is one of the most popular and flexible eCommerce plugins one can get. It’s a complete package for creating and managing online stores plus collecting payments online. Further, you can also enhance its functionality with several WooCommerce extensions.

So, here’s how you can use WooCommerce to accept payments online in WordPress.

Step 1. Go to Plugins>>Add New and type Woocommerce in the search box, then install and activate the plugin on your site.

Installing WooCommerce

Step 2. Configure the Setup Wizard.

WooCommerce Set Up

Step 3. After completing the setup wizard configuration, navigate to WooCommerce>>Home and click on the Set up payments option. 

Set Up Payment

Step 4. You can choose different payment gateways from the Set up payments tabs like WooCommerce payments, Stripe, and PayPal. Additionally, you can also enable options like Cash on delivery or set up Direct bank transfer

WooCommerce Payment Options

Further, several extensions are available in the WooCommerce repository to help you integrate more payment gateways like Amazon Pay, Square, PayFast, Braintree, etc. 


Wrapping Up!

We’ve mentioned four different methods to add payment gateways in WordPress. So, you can use any one of the methods to collect payment online according to your convenience.

If you’re still unsure, we recommend setting up a payment gateway using Everest Forms or User Registration. Both plugins let you easily accept donations, registration forms, or any type of payment via WordPress forms. 

Further, using the smart conditional logic feature provided by the plugin, you can enable your users to choose between different payment gateways like PayPal and Stripe.

However, if you own an online store with many products, you can also go on with the WooCommerce plugin. After all, the final choice is always yours.

And that wraps up our article on how to set up a payment gateway in WordPress. If you liked what you read, make sure to share it with your friends too. Also, don’t forget to share your experience with us if you use any of the methods above.

Want to read more of our WordPress blogs? Then, you can also check out articles on making job application forms and donation forms.

Introducing modern block theme for magazine, news & blogging sites.

Sujata Bajracharya

An aspiring SEO copywriter and a blogger keen to learn new things. When she is not writing, she enjoys listening to music, watching movies, and trying out new recipes.

Leave a Reply

Your email address will not be published.

Scroll to top

Pin It on Pinterest