in

How to Accept Payments with Stripe in WordPress?

Accept Payments on WordPress with Stripe

One of the major problems faced by every site owner is accepting online payments. If you are running an ecommerce or any membership website where you need to accept online payments, then you need to go through a long process of registrations. Afterwards, you need to connect with different payments gateways and find the most suitable ones.

However, one of the best methods of accepting online payments is via Stripe. This online payment processing company allows both businesses and individual site owners to receive payments from their customers. It provides one of the best fraud prevention and banking services that are focused on both the customer and the business owner. If you want to accept payments via Stripe on your WordPress site, then here we present you with the complete process of doing so.

Step 1

Stripe is a service which is focused on providing fraud prevention and the best security which is why it is necessary to add SSL certificate on your WordPress site. It not only offers extra security for your users but also helps you in getting a better ranking on the search engine result pages. To add SSL to your WordPress site, the first thing you need to do is change the URL of your site. All you have to do is head over to your WordPress admin dashboard and navigate to the Settings> General page. Here you need to change the WordPress97 Address and Site Address to https://www.yourdomain.com from http://www.yourdomain.com.

Step 2

In the next step, you need to make certain changes in the WordPress core files to set up redirects from HTTP to https. You need to connect with your FTP client and open the WordPress root directory. Here you need to add specific code to the .htaccess file which is located in the root directory. However, it is kept hidden for security reasons. To download this file, you need open the Server tab of your FTP client and enable the Force Showing Hidden Files option. Now you will be able to find and download the file to your local system.

Step 3

Once you have downloaded the file, you need to open it using any text editor and paste the following code into it.

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

</IfModule>

Now save all the changes and upload the file back to your server. You can now visit your site to see the newly added SSL.

After adding the SSL certificate to your website, you can now move to add Stripe. There are different methods of accepting payments via Stripe, and we are going to elaborate all of them.

Method 1 – Adding a Purchase Button

Step 1

One of the best parts of WordPress is that you can install different plugins which can enhance the overall features of the site. In this method, you are going to install a plugin called as WP Simple Pay Pro. This is premium where you need to pay annual subscription price. Choose the plan which suits your needs and downloads the plugin to your system. Upon downloading the plugin, you need to log in to your WordPress admin area, and head over to the Plugins> Add New page. Now click on the Upload Plugin button and the WordPress will start installing the plugin to your site. Once the installation completes, you need to click on the activation link to move forward with the process.

WP Simle Pay Pro

Step 2

After installing and activating the plugin, you need to head back to the admin dashboard and open the Simple Pay Pro> Settings Page. In the configuration page, the first thing that you need to enter is the WP Simple Pay Pro license key. You can obtain this key from your Simple Pay account and activate the plugin.

Step 3

In the next step, you need to click on the Stripe Keys tab where you need to enable the Test Mode option. Here you can see different fields where you need to add Stripe and other API keys. Entering these secret keys is necessary to authenticate your account. You can obtain these keys from your Stripe account.

Step 4

Once you have entered all the necessary keys, you need to open the General tab where you need to enter basic information like currency, currency position, payment success and failure page, date format, logo, payment button label and many other things. After making all the necessary configurations, make sure to click on the Save Changes button to keep the changes.

Step 5

Head back to your WordPress admin dashboard and open the Simple Pay Pro> Add a New page to add Stripe payment button to your site. The first thing that you need to decide is the Amount type where you can choose from the one-time set amount or a custom amount. Now enter the amount and select the payment success page.

Step 6

Now click on the On-Page Form Display tab and select the fields that you want to display on your site. You can add different fields like quantity, address, and name. Once you are done with that, click on the Check Out Overlay Display tab and enter the company name, image description, and the logo. Make sure to click on the Create button to create the payment form.

Step 7

After creating the form, it is time to add this form to the desired post or page. Open your WordPress admin dashboard and visit the Posts> All Posts page. Here you can see all the created posts where you need to click on the Edit button corresponding to the post in which you want to add the payment form.

Step 8

In the post editor window, you need to click on the Insert Payment Form button where you need to select the form which you created and click on the Insert Payment Form. Now click on the Save or Publish button to keep the changes. You can now test your website and check the Stipe payment form in action.

Method 2 – Accepting WooCommerce Payments via Stripe

Step 1

WooCommerce is the most widely used plugin to create an ecommerce. To accept WooCommerce payments via Stripe, you need to install and activate the WooCommerce Stripe Payment plugin on your site. This is a free plugin, so the installation process is a bit different from the previous method. Here you need to visit the Plugins> Add New page from your dashboard and search for the plugin. Now click on the Install Now button, and once the installation completes, you need to click on the activation link to activate the plugin.

Step 2

Once you have activated the plugin, you need to head back to your admin area and visit the WooCommerce> Settings page. Now open the Checkout tab where you need to click on the Stripe button. The first thing you need to do is check the Enable Stripe option. Afterwards, you need to enter the title, description and the necessary Stripe API keys which you can obtain from your Stripe account. If you want to test the payment gateway, then you should keep the test mode enabled or else you can uncheck this option. Make sure to hit the Save button or else the setting will not be stored on your site.

WooCommerce Stripe Payment

Though these two methods work perfectly for accepting Stripe payments, but the customization options are limited. If you want to create custom payment forms, then you can follow the below-mentioned method.

Method 3 – Accept Stripe Payments with WPForms

Step 1

WPForms is the plugin used to create custom forms on WordPress site, but it can be used to create custom payment forms which can accept payments via Stripe. Similar to the WP Simple Pay Pro, this is also a premium plugin where you need to pay some amount to use it. Download this plugin to your system and follow the same process to activate it on your site.

WPForms

Step 2

Once you have activated the plugin, you need to head over to the WordPress admin dashboard and navigate to WPForms> Settings page. Here the first thing that you need to enter is the license key which you can get from your WPForms account.

Step 3

After verifying the key, you need to head back to your admin area and visit the WPFroms> Add-ons page. Here you need to look out for the Stripe add-on and click on the Install Addon button. Just like the plugins, you need to click on the Activate button to start using it.

Step 4

After installing the addon, you need to visit the WPForms> Settings page from the WordPress admin dashboard and click open the Payments tab. Much like every other method, here you need to enter the Stripe account API keys for authentication. Once you have added the necessary details, you need to click on the Save button to keep the changes.

Step 5

The plugin is now configured to accept payments from Stripe, but you need to set up a new form and add it to your site. To create a new form, you need to open your WordPress admin dashboard and visit the WPForms> Add New page. This plugin comes with different prebuild templates which you can choose to create a form. For accepting payments, it is best that you select Billing form. However, you can create a form from scratch and customize it accordingly.

Step 7

In the template, you can add or remove any field which you want. You can also add custom fields to your form. After making all the changes, make sure that you save the form. Now head over to the Payments> Stripe tab where the first thing you need to do is check the Enable Strip Payments option. Afterwards, you need to enter a payment description and select the mode of sending the Stripe Payment Receipt. Once you are done with all the configurations, you need to click on the Save button to keep the changes.

Step 8

Now you need to add this form to any of the post or page. Follow the same process to open the post editor screen and click on the Add Form button. Choose the newly created Billing Form and click the Add Form button. Once you see a shortcode added to your site, you need to click on the Publish button to make the form live on your site.

Method 4 – Accepting Stripe Payments via Digital Downloads

Step 1

There is another ecommerce plugin which is known as Easy Digital Downloads. If you are using this plugin and want to accept Stripe payments, the first thing you need to do is install and activate the Stripe Payment Gateway Addon. You can follow the same process to install the plugin.

Easy Digital Downloads

Step 2

Once you have successfully activated the plugin, you need to head over to the WordPress admin dashboard and visit the Downloads> Settings page. Now open the Payment Gateways tab and open the Gateway Settings. Under the Payments Gateways, you need to enable the Stripe option and hit the Save button.

Step 3

Afterwards, you need to scroll down to the Stripe Setting where you need to enter the Stripe secret key and Punishable Key which you can obtain from your Stripe account. Now you can customize the plugin and add necessary fields like the logo, name, successful payment page and many others. Once you are done with that, make sure that you save the changes. You can now visit your website and check whether the plugin has worked or not.

Endnote

These were the top methods to accept payments with Stripe in WordPress. All the methods mentioned above will work for all the WordPress sites. It all depends on you that which method you should go with. If you want to have more customization options, then you should go for the WPForms method. If not, then you can choose any other method that you like.

Leave a Reply

Your email address will not be published. Required fields are marked *

How to Prevent Duplicate Post Titles in WordPress?

How to Prevent Duplicate Post Titles in WordPress?

How to Update a WordPress Plugin via FTP?

How to Update a WordPress Plugin via FTP?