How to Connect WordPress to PayPal Commerce

Do you want to connect WordPress to PayPal Commerce?

PayPal Commerce allows your customers to pay via credit cards without leaving your website. Even better, they also don’t need a PayPal account to make a payment.

In this article, we’ll show you how to easily connect WordPress to PayPal Commerce and start accepting credit cards on your website.

Easily connecting WordPress to PayPal Commerce

Why Use PayPal Commerce in WordPress?

PayPal Commerce offers an easier checkout solution for businesses and online stores to use on their WordPress websites.

Unlike a standard PayPal payment form, your customer can pay using their PayPal account or by entering a credit card number. They don’t need to have a PayPal account to complete the payment.

You can choose which credit card networks you want to accept and show their logo at the checkout. PayPal Commerce supports Visa, Mastercard, American Express, Maestro, and Discover.

PayPal Commerce also lets you accept one-time payments as well as recurring payments for subscriptions and online donations.

It offers a cleaner payment experience, and users can make a payment without leaving your website.

That being said, let’s take a look at how to easily connect WordPress to PayPal Commerce.

We’ll be showing you multiple methods. You can choose one that best suits your business needs.

Method 1. Add PayPal Commerce to Any WordPress Website

This method is easier and recommended for all users who are not using an eCommerce platform on their website.

For this method, we’ll be using WPForms. It is the best WordPress form builder on the market and allows you to easily create forms for your website.

WPForms website

With WPForms, you can create an online payment form and start accepting payments without using a full-fledged shopping cart plugin.

First, you need to install and activate the WPForms plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Note: You’ll need at least the ‘Pro’ plan to unlock the PayPal Commerce feature.

Upon activation, you need to visit the WPForms » Settings page to enter your plugin license key. You can find this information under your account on the WPForms website.

WPForms license key

Next, you need to visit the WPForms » Addons page.

From here, locate the box for ‘PayPal Commerce Addon’ and just click the ‘Install Addon’ button.

Install PayPal Commerce addon

WPForms will now install and activate the PayPal Commerce Addon.

After that, you need to visit the WPForms » Settings page and switch to the Payments tab.

Connect to PayPal commerce

From here, choose the currency and click on the ‘Connect with PayPal Commerce’ button to continue.

This will bring up a popup where you will be asked to log in to your PayPal account. After that, you will be asked to allow PayPal to connect with your WPForms account.

PayPal connect

Click on the ‘Agree and Connect’ button to continue.

Depending on your account, PayPal Commerce will now walk you through the setup process. Simply follow the onscreen instructions to finish the setup.

Once finished, you’ll be returned to the Payments tab on your website, and you’ll see a green checkmark under ‘Connection Status’ for PayPal Commerce, indicating that the connection was successful.

PayPal connected message

Now that you’re ready to accept payments with PayPal Commerce, you need to create a payment form to add to your site.

Head over to the WPForms » Add New page and enter a name for your form. Then, you can choose a template or start with a blank form.

Form name and template

This will launch the WPForms Form Builder interface.

It is a drag-and-drop form builder where you can simply click on the fields to edit them or add new fields from the left column.

WPForms form builder

Next, you need to add the PayPal Commerce field from the left column to your form.

You can just drag the element from the left and drop it into the form preview on the right.

Add PayPal Commerce field

This will bring up a popup, reminding you that you need to enable PayPal Commerce payments for this form.

Click on the ‘OK’ button to close the popup, and then switch to the ‘Payments’ section in the left-hand menu of the form builder.

Payment type

Once inside the ‘Payments’ section, click ‘PayPal Commerce’ and then enable the payment type (One-time payments or Recurring Payments).

Depending on your choice, you’ll see further options on the screen.

Map form fields

For instance, you’ll be asked to match the form fields to the payment fields. This means that your form’s ‘Name’ field will be mapped as the name field for PayPal Commerce.

Similarly, if you choose the Recurring Payments option, then you will be asked to create a plan and choose payment frequency and other options.

Create plans for recurring payments

Once you are done setting up your form, don’t forget to click on the ‘Save’ button to store your settings.

You are now ready to add the form to your website.

Simply edit the post or page where you want to accept payments. In the block editor, add the ‘WPForms’ block.

WPForms block

Choose the form you created earlier from the block drop-down menu, and WPForms will load a preview of the form for you.

You can now save your post or page and preview it in a new browser window to see your PayPal Commerce payment form in action.

PayPal commerce WPForms

Method 2. Add PayPal Commerce in WordPress Using Easy Digital Downloads

For this method, we’ll be using Easy Digital Downloads. We recommend using this method if you want to sell digital goods like ebooks, software, music, graphics, photographs, and more.

Easy Digital Downloads is the best WordPress eCommerce plugin for selling digital downloads. It is super easy to use and supports many payment providers including PayPal Commerce.

Easy Digital Downloads website

First, you need to install and activate the Easy Digital Downloads plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Next, you need to install and activate the PayPal Commerce Pro addon for Easy Digital Downloads. You’ll install it like any other plugin in WordPress.

Note: You’ll need at least the ‘Extended’ plan for Easy Digital Downloads to unlock this addon.

Once you have activated both plugins, login to your WordPress admin area and go to Downloads » Settings page, and switch to the Licenses tab.

Easy Digital Downloads Licenses

You can find your license information under your account on the Easy Digital Downloads website.

Next, you need to set up PayPal Commerce as your payment gateway in Easy Digital Downloads.

To do this, go to the Downloads » Settings page and switch to the ‘Payments’ tab.

Setting up payments

From here, you need to check ‘PayPal’ under the ‘Active Gateways’ section. Optionally, you can also choose it as your Default Gateway.

Don’t forget to click on the ‘Save Changes’ button to store your settings.

Next, you need to click on the ‘PayPal’ tab under ‘Payments.’

Connect with PayPal button

This will launch a popup where you can sign in with your PayPal account and follow the onscreen instructions to complete the connection.

Once finished, you will be redirected back to your website where you will see a success message.

Connection successfull

After that, you need to check the ‘Enabled Advanced Credit and Debit Card Payments’ option.

Don’t forget to click on the ‘Save Changes’ button to store your changes.

Now, when you sell any product with Easy Digital Downloads, your customers will see the PayPal Commerce payment option during the checkout.

PayPal Commerce checkout in Easy Digital Downloads

To learn more, see our complete guide on selling digital downloads in WordPress.

Method 3. Add PayPal Commerce in WordPress Using MemberPress

This method will use MemberPress, and it is recommended for users who want to sell memberships, pay-per-view content, or online courses on their websites.

MemberPress is the best WordPress membership plugin on the market and allows you to easily sell subscriptions and online courses.

MemberPress

First, you need to install and activate the MemberPress plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you need to visit the MemberPress » Settings page to enter your license key. You can find this information under your account on the MemberPress website.

MemberPress license key

Next, you need to switch to the ‘Payments’ tab and click on the ‘(+) Add Payment Method’ button.

MemberPress supports Stripe and PayPal out of the box. You need to select ‘PayPal’ to continue.

Add PayPal standard

Go ahead and add your PayPal email address and click on the ‘Update Options’ button to save your settings.

MemberPress will now show you that your PayPal method is outdated. You need to click on the ‘Upgrade to new PayPal Commerce Platform’ button to continue.

Upgrade to PayPal Commerce

Next, you will be asked to connect to your PayPal account to MemberPress.

Click on the ‘Connect Live’ button to continue.

Connect MemberPress to PayPal Commerce

This will bring up a popup where you will be asked to log in with your PayPal account and give permission to connect MemberPress with your PayPal account.

Follow the on-screen instructions to finish the setup. Upon completion, you will be redirected back to your website where you continue setting up your membership website.

Note: If this is your first time using MemberPress, you may want to see our guide on how to build a membership site for detailed setup instructions.

Once you have added subscription plans or online courses, your customers will be able to see PayPal Commerce as a payment option.

PayPal Commerce preview in MemberPress

We hope this article helped you connect PayPal Commerce to your WordPress website. You may also want to see our guide on making money online with your WordPress website or look at these proven online business ideas that you can start with very little investment.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Connect WordPress to PayPal Commerce first appeared on WPBeginner.

How to Add a PayPal Payment Form in WordPress (Step by Step)

Are you looking to add a PayPal payment form to your WordPress site?

PayPal makes it super-easy to accept payments on your website. It is convenient, cost-effective, secure, and already used by millions of users around the world.

In this article, we’ll show you how to easily add a PayPal payment form in WordPress.

How to Add a PayPal Payment Form in WordPress

Why Accept PayPal Payments in WordPress?

You don’t need a full-fledged eCommerce store to accept payments on your WordPress website. If you’re only selling a single product or accepting payments for consulting or services, then adding a payment form is much simpler.

PayPal is arguably the most popular and trusted online payment gateway in the world. And since PayPal handles the entire transaction, you don’t have to worry about security issues, getting a separate merchant processor for credit cards, or PCI compliance.

With that being said, let’s take a look at how to easily add a PayPal payment form in WordPress.

How to Add a PayPal Payment Form in WordPress

There are many WordPress PayPal plugins available in the market that lets you add a payment button or order form on your site.

But when it comes to the flexibility of building the order form and add customizations without code, we believe WPForms is the best option.

WPForms is the best drag and drop form builder plugin for WordPress used by over 5 million websites. It lets you create a simple billing or order form without the need for a full-fledged eCommerce platform or shopping cart plugin.

We recommend using WPForms because it lets you accept both PayPal and credit cards in the same form through their integration with credit card services like Stripe, Square, and Authorize.net.

The first thing you need to do is install and activate the WPForms plugin. For more details, see our step by step guide on how to install a WordPress plugin.

While they have a Lite version that’s free, you will need their Pro plan to access the PayPal addon and order form template.

Upon activation, you need to visit the WPForms » Settings page to enter your license key. You can find this information in your WPForms account area. Make sure you click the ‘Verify Key’ button to activate your license.

Enter Your WPForms License Key

Next, go to the WPForms » Addons page. Here, you need to install the PayPal Standard addon. Simply find it in the list, and then click the ‘Install Addon’ button below it.

The addon will be automatically installed and activated for you.

Install the PayPal Standard Addon

Now, it’s time to create your payment form.

Creating a PayPal Payment Form in WordPress

Simply go to the WPForms » Add New page in your WordPress admin area to launch the form builder.

First, you need to provide a title for your form and then scroll down to the ‘Billing / Order Form’ template and click the ‘Use Template’ button.

Select the Billing / Order Form Template

WPForms will now automatically load your form template in the drag and drop builder. It’s easy to add, remove, or change the fields on your form.

For example, a Multiple Items list has been added to the form so your visitors can select the product or service they wish to pay for. Once you click on this field you will be able to customize the field’s label and the name and price of each item.

Customize the Multiple Items List

If you are only offering a single item, then you should delete the Multiple Items field by clicking the trash icon in the top right corner of the field.

Next, you can scroll down to the Single Item field and drag it onto your form.

Add a Single Item Field to Your Form

You can click on this field to customize it.

For instance, you can change the field’s label, description, and price. The preview of your form on the right will be updated automatically.

Configure the Single Item Field

If you are only offering a single item, then the Total field is unnecessary. Feel free to delete it.

Next, you need to go to Payments » PayPal Standard to set up PayPal. Simply check the ‘Enable PayPal Standard payments’ box.

Check the Enable PayPal Standard Payments Box

If you don’t already have one, you will need to create a PayPal account. Then you can enter your PayPal email address into the WPForms settings.

After that, you need to fill in the other PayPal settings. If you wish to test your payment form, then you should select the ‘Test / Sandbox’ mode. This allows you to make dummy PayPal payments to make sure that the form is working correctly.

Don’t forget to change the Mode option back to ‘Production’ when you have finished testing.

Most websites will need the ‘Products and Services’ payment type. The other option is ‘Donations’, and you can learn more in our guide on how to add a PayPal donate button.

You can also add a URL to redirect users who don’t complete the payment, and decide whether a shipping address and note are required.

Finally, you can use the ‘Enable Conditional Logic’ option to accept multiple payment types. For more details, see our guide on how to allow users to choose a payment method on WordPress forms.

Once you’re done, click the Save button to store your settings.

Click the Save Button to Store Your Settings

Your online PayPal payment form is now ready, and you can add it to any WordPress post or page on your website.

Adding Your PayPal Payment Form to Your Website

WPForm makes it super easy to add forms anywhere on your website.

Simply create a new post or page, or edit an existing one. Then, click on the plus (+) sign at the top and add a WPForms block in the WordPress editor.

Add a WPForms Block to Your Post or Page

After that, select your order form from the dropdown menu in the WPForms block.

Once you’re finished, you can save or publish your page and click on the preview button to see your form in action.

PayPal Payments Form Preview

When your users fill in the form and click the ‘Submit’ button, the ‘Pay with PayPal’ screen will appear automatically so they can finalize the payment.

Pay With PayPal Screen

Congratulations, you’ve now created a PayPal payment form in WordPress.

You can connect your payment forms with email marketing services, Google sheet, and other apps to further streamline your workflow using WPForms native integrations.

We hope this tutorial helped you learn how to add a PayPal payment form in WordPress. You may also want to learn how to get a free email domain, or check out our list of must have plugins to grow your site.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add a PayPal Payment Form in WordPress (Step by Step) first appeared on WPBeginner.

10 Best WordPress PayPal Plugins for Easily Accepting Payments

Are you looking to accept payments on your WordPress site using PayPal?

PayPal makes it easy for website owners to accept payments online from their customers. Using a PayPal Plugin, you can easily integrate the popular payment service with WordPress.

In this article, we will compare the best WordPress PayPal plugins for accepting payments.

Best WordPress PayPal plugins

Why Use a PayPal Plugin for WordPress?

PayPal is arguably the most popular and trusted online payment gateways in the world.

Whether you have an eCommerce store, a membership website, a blog, or any other business site, PayPal lets you collect online payments from your customers.

Since PayPal handles the entire transaction, you don’t have to worry about security issues, getting a separate merchant processor for credit cards, or PCI compliance. All you have to do is add PayPal to your WordPress website.

A WordPress PayPal plugin makes the process of connecting your site with your PayPal account very easy.

It also helps you create payment collection forms, insert shopping carts, add a pay now button, offer express checkout solutions, and more.

That being said, let’s look at some of the best PayPal plugins for WordPress.

1. WPForms

WPForms

WPForms is the most beginner friendly contact form plugin for WordPress and is trusted by over 5 million professionals.

It offers a drag & drop online form builder that allows you to easily create contact forms, email subscription forms, order forms, payment forms, donation forms, and other types of online forms with just a few clicks.

The plugin offers pre-built form templates, which lets you create any type of online form in no time. There are multiple form fields that you can add to customize your form using the drag and drop builder.

With WPForms PayPal addon, you can easily accept payments, donations, and online orders on your WordPress website.

WPForms PayPal Addon

Once the addon is active, you can fill out your PayPal details in the form settings. WPForms will then automatically direct users to PayPal when they submit a form.

Enabling PayPal payments for your form in WPForms

WPForms is a perfect solution for you if you want to set up a quick online order form without setting up a full eCommerce cart.

2. MemberPress

MemberPress

MemberPress is the best WordPress membership plugin and is very easy to use. You can sell courses, offer digital downloads, and allow users to access posts, pages, videos, and other content after becoming a member.

It offers lots of features and comes with a drag and drop course builder. You can also control who can access which content by setting up different membership levels.

The plugin comes with built-in integration with PayPal. You can easily accept payments using PayPal Standard and PayPal Digital Goods.

There’s no need to manually add a PayPal payment gateway to your membership website. MemeberPress comes with PayPal gateway API keys.

Simply select PayPal as your payment method, and MemberPress will add it to your membership website.

3. Easy Digital Downloads

The Easy Digital Downloads website

Easy Digital Downloads is the most popular WordPress eCommerce plugin for selling digital downloads in WordPress.

Whether you want to sell an eBook, music files, digital art, software, or any other type of digital good, Easy Digital Downloads is the plugin for you.

It comes with integrations for PayPal Standard, PayPal Express, PayPal Pro, and even the new PayPal commerce platform.

Aside from PayPal, it also allows you to accept other payment solutions as well including Stripe, Apple Pay, Google Pay, and more.

You can sell subscriptions, accept recurring payments, add discount codes, and set up a full shopping cart in just a few minutes.

4. Formidable Forms

Formidable Forms

Formidable Forms is an advanced WordPress forms plugin in the market. It lets you create complex forms without the need to hire a developer.

The plugin offers a drag and drop form builder, making it super easy to build all kinds of forms. For example, you can create simple contact forms, quizzes, surveys, payments forms, and more.

What makes Formidable Forms so powerful is that you can also build advanced forms like mortgage calculators, directories, job board listings, and much more.

Formidable Forms offers a PayPal addon, which allows you to collect online payments from your visitors. You can also customize your PayPal settings, like selecting different currencies and setting a one-time or recurring payment type.

To get started, all you have to do is edit or create a new form in Formidable Forms and add PayPal as a new action in your form.

5. WooCommerce

WooCommerce

WooCommerce is a popular WordPress eCommerce plugin that allows you to accept payments using PayPal. In just a few clicks, you can add the PayPal payment method to your WooCommerce store.

Along with PayPal, the plugin also integrates other WooCommerce payment options including debit card, credit card, and pay upon invoice.

WooCommerce allows you to sell physical goods, subscriptions, integrate with shipping providers, collect taxes, handle inventory, and more.

It’s the most popular WordPress eCommerce plugin if you’re selling to sell physical goods.

6. Quick PayPal Payments

Quick PayPal Payments

Quick PayPal Payments is a simple but powerful plugin that lets you easily accept payments using PayPal.

The plugin is super easy to use. All you need to do is set up a payment form and add it anywhere on your site using a shortcode.

The plugin also provides different options to customize the appearance and styling of your payment form. Besides that, you get fixed and variable payment options, GDPR compliance, multi-language support, and more.

Quick PayPal Payments also offers a customizable autoresponder. When you enable the autoresponder, the plugin will automatically send a confirmation message about the payment to your customer.

7. WordPress PayPal

WordPress PayPal plugin

WordPress PayPal is a WordPress plugin that allows you to create buy now, add to cart, donation, and subscription buttons.

You can place these buttons anywhere on your WordPress blog or eCommerce store using a shortcode and enable PayPal checkout for your visitors.

Another advantage of using WordPress PayPal is that it allows you to test purchases using test buyers and seller accounts in PayPal Sandbox.

This way, you can make sure that the checkout process is working properly before accepting payments from real customers.

Other features offered by the plugin include setting up recurring payments, selling in different currencies supported by PayPal, charging shipping and tax on your products, and much more.

8. PayPal Donations

PayPal Donations

PayPal Donations is a simple plugin that comes with a shortcode and a ready-to-use PayPal WordPress widget that you can add to your WordPress sidebars.

It’s beginner-friendly, and you can configure the settings from your WordPress dashboard. Simply enter your PayPal email address and choose your currency to get started.

The plugin also offers different styles of PayPal donate button you can use on your website. There is also an option to use your custom donation button.

9. WP Express Checkout

WP Express Checkout

WP Express Checkout is the next WordPress PayPal plugin on our list. Like other plugins, it also lets you create a PayPal payment button for your WordPress website.

However, what makes this plugin different is that it offers the checkout process in a popup window. This way, your customers never leave your website and allows for quick and easy checkout.

The plugin works seamlessly for selling products and services. It’s great for anyone looking to collect online payments by offering downloadable content like PDFs, eBooks, or music.

WP Express Checkout automatically allows customers to download files once they’ve paid. You can also deliver the digital downloads using an encrypted download link that expires automatically.

10. WordPress Simple PayPal Shopping Cart

WordPress Simple PayPal shopping cart

WordPress Simple PayPal Shopping Cart provides an easy way to sell products/services on your website and accept payments using PayPal.

It adds a shopping cart system and allows users to add physical products and digital goods to their cart. On checkout, users can pay using PayPal.

You can use shortcodes to display the shopping cart on any post or page and turn your WordPress blog into an online store.

We hope this article helped you find a PayPal WordPress plugin for accepting payments on your site. You may also want to check out our guide on how to start a podcast and best PayPal alternatives to collect payments in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post 10 Best WordPress PayPal Plugins for Easily Accepting Payments appeared first on WPBeginner.

How to Allow Users to Choose a Payment Method on WordPress Forms

Do you want to allow users to choose between different payment methods on your WordPress website or online store?

When you allow your customers to choose their preferred payment method, you’ll build trust and increase conversions on your website.

In this article, we’ll show you how to allow your users to choose a payment method in your WordPress forms.

How to Allow Users to Choose a Payment Method on WordPress Forms

Why Offer Multiple Payment Methods in WordPress?

PayPal and credit cards are two popular ways to pay for online purchases. Each has its pros and cons, and your visitors are likely to already have a preference for one or the other.

So, if you’re selling products or services on your WordPress website, or asking for donations, then it is important to allow your visitors to use their preferred payment method.

You may already have a complete online store with a shopping cart, but you don’t need to set one up to accept online payments. All you need is a simple online order form with a choice of payment options.

This makes sense if you’re selling a single product, accepting payments for services, or raising money for a cause or charity.

Before you can accept payments on your website, you’ll need to enable HTTPS/SSL on your website so that you can accept payments securely. For more details, you can follow our guide on how to get a free SSL certificate for your WordPress site.

That being said, let’s look at how you can offer multiple payment options on your website. We’ll cover three methods so you can choose the one that best suits your needs.

Method 1 is the simplest and doesn’t require a full shopping cart. You should use Method 2 if you have a WooCommerce store. And Method 3 is best if you don’t have an online store and want to use PayPal or create more flexible forms.

Method 1: Offering Multiple Payment Methods Using WP Simple Pay

WP Simple Pay is an easy way to offer multiple payment methods on your site. It’s a leading WordPress payments plugin that lets you receive payments without setting up a full-featured eCommerce store or membership site.

It uses Stripe, a popular payment gateway, to accept payments from credit cards, Apple Pay, Google Pay, ACH bank debit, SEPA direct debit, Alipay, Giropay, iDEAL, and more.

The first thing you need to do is install and activate the WP Simple Pay plugin. For more details, see our step by step guide on how to install a WordPress plugin.

While there is a free version of the plugin, you need the Pro plugin to create on-site payment forms, accept Apple Pay, and more.

Upon activation, the WP Simple Pay setup wizard will start automatically. You simply need to click the ‘Let’s Get Started’ button to continue.

The WP Simple Pay Setup Wizard Will Start Automatically

First, you’ll be asked to enter your license key. You can find this information from your account on the WP Simple Pay website.

After that, you need to click the ‘Activate and Continue’ button to move on.

You’ll Be Asked to Enter Your WP Simple Pay License Key

Next, you’ll need to connect WP Simple Pay to Stripe.

Start by clicking the ‘Connect with Stripe’ button. From there, you can log in to your Stripe account or create a new one. Anyone with a legitimate business can create a Stripe account and accept payments online.

You Need to Connect WP Simple Pay to Stripe

As we mentioned earlier, Stripe will require your site to be using SSL/HTTPS encryption. If you don’t already have an SSL certificate for your website, then please see our step by step guide on how to add SSL in WordPress.

Once you’ve connected to Stripe, you’ll be asked to configure your WP Simple Pay emails.

Configure Your WP Simple Pay Emails

The options for payment and invoice emails to your customers have already been enabled for you. So has the option for sending payment notification emails. You just need to enter the email address where the notifications should be sent.

Once you’ve done that, you need to click the ‘Save and Continue’ button. This completes your setup of WP Simple Pay.

WP Simple Pay Setup Is Complete

There’s one more setting you may need to configure before we move on. Some payment options will only work for specific currencies, so if you are not using USD, then you will need to change the default currency.

Simply visit WP Simple Pay » Settings then click on ‘General’ and then ‘Currency’, then select the correct currency from the drop down menu.

If Necessary, Change the Default Currency for WP Simple Pay

Creating a Payment Form in WordPress

Now it’s time to create your payment form. WP Simple Pay offers plenty of ways to customize the form, but if you need more complete control over the way your form looks, then check out WPForms in Method 3.

If you didn’t need to change your currency and can still see the last page of the setup wizard, simply click the ‘Create a Payment Form’ button. Otherwise, you should navigate to the WP Simple Pay » Add New page.

You’ll be shown a list of payment form templates. You could start with a generic template such as ‘Payment Form’ and then add payment methods. Alternatively, you can look for a more specific template, such as ‘Afterpay/Clearpay’ or ‘Apple Pay / Google Pay‘.

For this tutorial, we’ll choose the ‘Payment Form’ template. Simply hover over the template you wish to use and click the ‘Use Template’ button when it appears.

Select the Payment Form Template

This will take you to the payment form editor.

You should start by giving the payment form a name and description. After that, you can select the ‘Stripe Checkout’ option under Form Type.

Give Your New Payment Form a Name and Description

Next, you need to click on the ‘Payment’ tab. Here you can set the payment mode to either live or testing. Test mode will let you make payments that are not actually charged so you can make sure your form is working properly and emails are being sent.

Don’t forget to change this to ‘Live’ when you’ve finished testing and are ready to start receiving payments from your customers.

Set the Payment Mode to Either Live or Testing

You can also add the products or services that you offer, along with their prices and whether they are a one-time payment or a subscription.

Simply click the ‘Add Price’ button until you have added as many prices as you need. Then for each one, you will need to add a label and price. You can also select other options, such as if the price is a subscription, or the user can determine the price, as in a donation.

Add Your Products and Services to the Payment Form

You can show or hide a price by clicking the small arrow on the right.

Next, we’ll move on to the ‘Form Fields’ tab. The essential fields have already been added to the form, and you can add more if necessary.

Using the ‘Form Fields’ drop down, you can choose additional fields and add them by clicking the ‘Add Field’ button. Options include name, phone number, address, and much more.

You Can Add Fields to Your Payment Form

The default text on the button is ‘Pay with Card’. Since you’ll be accepting multiple payment types, you can change the text to something more generic, such as simply ‘Pay Now’. Then your customers won’t assume that credit cards are the only payment option.

Finally, you should click the ‘Stripe Checkout’ tab and select the payment methods you wish to offer. For this tutorial, we’ll just leave the default settings.

Select any Additional Payment Methods and Tweak the Checkout Form

Additional payment methods, such as Apple Pay, will be automatically offered on compatible devices. To learn more, see our guide on how to accept Apple Pay in WordPress.

Klarna and Afterpay are ‘buy now, pay later’ services and offer customers flexibility as they can purchase goods and pay in installments over a specified time period. For more information, see our guide on how to add ‘buy now pay later’ payment plans to WordPress.

When you are happy with your payment form, click the ‘Publish’ button to store your settings and push the form live.

The final step is to add the form to a post or page on your website.

Adding the Payment Form to Your Website

WP Simple Pay makes it super easy to add forms anywhere on your website.

Simply create a new post or page, or edit an existing one. Then, click on the plus (+) sign at the top and add a WP Simple Pay block in the WordPress block editor.

Add the WP Simple Pay Block to a Post or Page

After that, select your order form from the dropdown menu in the WP Simple Pay block.

Once you’re finished, you can update or publish the post or page, and then click on the preview button to see your form in action.

Visit Your Website to See the Payment Form in Action

When your users click the ‘Pay Now’ button, the Stripe checkout form will be displayed. This will offer all of the payment options you checked earlier.

On supported devices and browsers, additional payment options such as Apple Pay will also be offered automatically.

Apple Pay Will Be Offered When Checking Out on Safari on a Mac or iOS Device

One additional payment method you can offer your customers using WP Simple Pay is recurring payments. For more information, see our guide on how to accept recurring payments in WordPress.

Method 2: Offering Multiple Payment Methods in WooCommerce

If you are running an online store using WooCommerce, then you can easily offer additional payment methods by using PayPal and the Stripe payment gateway.

For this tutorial, we’ll assume that you already have WooCommerce installed. If you need help setting it up, then see our step by step guide on WooCommerce.

Adding PayPal to Your WooCommerce Store

You may have already set up PayPal when following the WooCommerce setup wizard in that guide. If you have, then you can move on to the next section and set up Stripe.

If not, you need to head over to WooCommerce » Settings and then click the ‘Payments’ tab at the top of the screen.

After that, scroll down the page until you find PayPal and click the ‘Get started’ button.

Click the PayPal Getting Started Button

You need to start by typing your PayPal email address and then selecting your country from the drop down menu.

After that, you should click the ‘Next’ button to continue.

If you already have a PayPal account using that email address, then you’ll be asked to provide your password and log in. Otherwise, you’ll first be asked to provide your personal details and create a new account.

Log In to Your PayPal Account or Create a New One

Finally, you should click the ‘Agree and Consent’ button to connect your PayPal account to the online store.

Once you’ve done that, you’ll need to confirm your email address by going to your inbox and following the instructions in the email you were sent. You can then dismiss the popup window by scrolling to the bottom and clicking the button.

Agree to Connect Your Account, then Scroll Down and Click the Button

You should find yourself back on the WooCommerce payments settings page. Here you will need to check the box to enable the PayPal payment gateway on your online store.

After that, carefully scroll down the page and make sure all the settings are correct. When you’re happy, you can click the ‘Save changes’ button at the bottom of the page.

Enable the PayPal Payment Gateway on Your WooCommerce Store

When checking out, your customers can now pay using PayPal as a payment option.

Adding Stripe to Your WooCommerce Store

The first thing you need to do is install and activate WooCommerce Stripe Payment Gateway. For more details, see our step by step guide on how to install a WordPress plugin.

Some payment options are only available for certain currencies. If you are using a currency other than USD, then you should navigate to WooCommerce » Settings and make sure you are on the ‘General’ tab.

Here you can choose the currency for your online store. Make sure you click the ‘Save’ button to store the setting.

Choose a Currency for Your Online Store

After that, you should click the ‘Payments’ tab. Once there, you should scroll down until you find ‘Stripe’ in the ‘Method’ column. Notice that there are multiple Stripe payment methods.

Set Up Stripe Credit Card in WooCommerce

You need to start by clicking the ‘Set up’ button next to ‘Stripe – Credit Card’. This will launch a setup wizard that takes you through the steps of connecting WooCommerce to Stripe.

On the next screen, click on the ‘Enter account keys’ button.

Entering your Stripe account keys

WooCommerce will now ask for your Stripe account keys. To get this information, you need to log into your Stripe dashboard in a new tab.

Inside the Stripe dashboard, you should make sure you’re on the ‘Developers’ tab at the top of the screen, and then select ‘API keys’ from the left-hand menu.

The Stripe API keys

You can now copy the ‘Publishable key.’

Then, switch back to your WordPress dashboard and paste this key into the ‘Live publishable key’ field.

The Stripe live publishable key

Now you need to do the same thing with the secret key. Simply switch back to your Stripe dashboard and click on the ‘Reveal live key’ button.

This will show your secret key.

Getting the Stripe live key

You need to copy the key and then head back to your WordPress dashboard and paste it into the ‘Live secret key’ field.

After that, just click on the ‘Test connection’ link.

Testing your Stripe payment gateway connection

After a few moments, you will see a ‘Connection successful’ message. This means that WooCommerce is now connected to your Stripe account.

You can now go ahead and click on the ‘Save live keys’ button.

Saving the live Stripe keys

This will take you to the Stripe ‘Settings’ screen.

On this screen, you need to check the ‘Enable Stripe’ box. If you like, you can also click the ‘Enable test mode’ box.

Test mode will let you make payments that are not actually charged to an account. This is useful when testing multiple payment types in your WooCommerce store. Don’t forget to come back and uncheck the setting when you are ready to start taking payments.

WooCommerce's Stripe settings

Now you can scroll to the very bottom of the page and click the ‘Save Changes’ button to store your settings.

Now that you have enabled Stripe credit card payments, you can enable any additional Stripe payment methods you would like to offer on your online store.

Head back to WooCommerce » Settings and click on the ‘Payments’ tab. Once there, you can explore the payment methods that work with your store’s currency.

For this tutorial, we’ll enable Alipay. You need to find ‘Stripe Alipay’ in the list of payment methods and then click its ‘Set up’ button.

Click the 'Set Up' Button Next to Alipay

Here you can click the ‘Enable Alipay’ button. This will display Alipay as a payment option when checking out.

Next, you need to click the ‘Save changes’ button to store your settings.

Enable Alipay in WooCommerce

Adding Recurring Payments to WooCommerce

Another way to offer flexible payment arrangements to your WooCommerce customers is to add recurring payments so that your customers are automatically charged on a weekly, monthly, quarterly, or annual basis.

This automates the billing process to can save you time. You won’t have to manually send invoices and recurring payments generally lead to fewer payment delays and errors.

To learn more, see Method 4 in our guide on how to accept recurring payments in WordPress.

Now when your customers check out, they will be able to choose their preferred payment method. Here’s an example screenshot from our demo WooCommerce store.

WooCommerce Checkout Preview

Our customers are able to make payments using credit cards, PayPal, and Alipay.

Method 3: Offering Multiple Payment Methods Using WPForms

The first thing you need to do is install and activate the WPForms plugin. For more details, see our step by step guide on how to install a WordPress plugin.

WPForms is the best drag and drop form builder plugin for WordPress. It lets you create a simple order form or donation form without the hassle of a full-fledged eCommerce platform or shopping cart plugin.

While they have a Lite version that’s free, you will need their Pro plan to access the payment addons and order form template. It supports credit cards and PayPal.

Upon activation, you need to visit the WPForms » Settings page to enter your license key. You can find this information in your WPForms account area.

Visit the WPForms » Settings Page to Enter Your License Key

Connecting Payment Platforms to WPForms

Next, we’ll connect WPForms with the payment platforms you plan to use. To do this, you need to head over to WPForms » Addons and install the payment addons.

Once there, you need to scroll down to the PayPal Standard Addon and then click on its Install Addon button.

Install the PayPal Standard Addon

You’ll see a message saying that the addon has been installed and activated, and the text on the button will change to Deactivate.

We’ll set up your PayPal account details later in the tutorial.

You’ll also need to install an addon for accepting credit card payments. WPForms supports Stripe, Square and Authorize.net. For this tutorial, we’ll set up Stripe, but the steps for setting up the other two platforms are similar.

You’ll need to scroll to the Stripe Addon and click on the Install Addon button.

Installing the Stripe addon

Once the addons have been installed and activated, you’ll need to connect WPForms to your Stripe account.

To do that, head over to WPForms » Settings page and click on the ‘Payments’ tab. After that, you will need to connect your Stripe account by clicking the ‘Connect with Stripe’ button.

Connecting WordPress to Stripe payments

On the next screen, you can enter your Stripe email address and click the ‘Next’ button. Once that is done, Stripe will now ask for your password so that it can log in to your account.

After logging in, you can select your Stripe account and then click the ‘Connect’ button. You’ll then be redirected back to the WPForms Payments settings tab.

To make sure that your account is successfully connected, you can go to the Connection Status settings under Stripe settings.

When you see a green tick mark, it means your Stripe account is now live with WPForms. Go ahead and click the ‘Save Settings’ button to store your settings.

Successfully Connected Your Stripe Account

WPForms is now ready to accept credit card payments.

Creating an Order Form With Multiple Payment Methods

Now we’ll create an online order form that can accept both PayPal and credit card payments.

To start, head over to the WPForms » Add New page. From here, you need to provide a title for your form and then select the ‘Billing / Order Form’ template.

Select the ‘Billing / Order Form’ Template

WPForms will pre-load the form builder with a simple order form with commonly used fields.

You can edit any field by clicking it.

WPForms Will Pre-load the Form Builder with a Simple Order Form

You can add new fields from the left column using drag and drop.

You’ll need to drag a Multiple Choice field onto the form to allow your customers to select from multiple payment options.

Add a Multiple Choice Field

After that, you should drag the Stripe Credit Card field onto the form just underneath the Multiple Choice field.

Add a Stripe Credit Card Field

Next, you need to click on the Multiple Choice field and change the options to match the payment methods you are offering.

Start by giving the field the label Payment Method. After that, you should name the first two choices PayPal and Credit Card.

Multiple Choice Field Options

You can simply remove the third choice by clicking the red minus ‘‘ button.

After that, you need to switch the Required option on. This will make sure that users select a payment method before they submit the order form.

Now we need to set up the Stripe Credit Card field. We want it to be hidden until a user selects it as their payment option. We’ll need to use WPForms’ conditional logic feature.

You’ll need to click on the Stripe field so that you can edit it, and then click the ‘Smart Logic’ tab. Simply enable conditional logic by clicking the toggle switch to the on position.

Click on the Smart Logic Tab and Enable Conditional Logic

You will now see some additional options that allow you to set up rules for the field. You need to make sure that the first option is selected to ‘Show’ and then use the drop down menus so that the remaining fields say ‘Payment is Credit Card’.

Set Up Some Rules for the Field

Now the Stripe Credit Card field will only be shown after a user selects Credit Card from the Payment Method field.

Enabling Payment Methods on the Order Form

Now we’ll enable PayPal and Stripe payments for the order form.

You should first navigate to Payments » PayPal Standard in the WPForms form builder. Once there, you should check the ‘Enable PayPal Standard payments’ box in the right panel.

Check the ‘Enable PayPal Standard Payments’ Box

After that, you should fill in the rest of the fields. Type in your PayPal email address and place the account in Production mode. You also need to configure whether users need to supply a shipping address.

Toggle the Enable Conditional Logic Option

After that, you need to scroll down to the Enable Conditional Logic option and toggle it to the ON position. This will reveal more settings.

Toggle the Enable Conditional Logic Option

You should set the rule to ‘Process the charge if the Payment Method is PayPal’.

Next, you need to click on the Stripe section of the Payments tab and then check the ‘Enable Stripe payments’ box.

Check the ‘Enable Stripe Payments’ Box

You can add a payments description and opt to email a receipt if you wish. After that, you need to switch the Enable Conditional Logic toggle to the on position so that you can create a rule for this payment option.

Toggle the Enable Condition Logic Option

You need to configure the rule so that it reads ‘Process this charge if the Payment Method is Credit Card’.

If you’d like to accept recurring subscription payments by credit card, then you can scroll down to the Subscription section and configure it.

Stripe Subscriptions

Once you are done, you need to click on the Save button at the top and exit the form builder.

Adding the Order Form to Your WordPress Site

Your online order form with multiple payment options is now ready, and you can add it to any WordPress page on your site.

To add your form, simply edit a post or page or create a new one. Then, click on the plus + sign on the right of the page and add a WPForms block in your WordPress editor.

Add a WPForms Block

After that, you need to click on the drop down menu in the WPForms block, and then select your order form. When you’ve finished, make sure you save or publish the page.

Now you can see your form in action by clicking the ‘Preview’ button at the top of the screen.

Preview Order Form

We hope this tutorial helped you learn how to allow users to choose a payment method on your WordPress form.

You may also want to see our expert pick of the best virtual business phone number apps for small businesses, and our step by step guide on how to choose the best business VoIP provider.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Allow Users to Choose a Payment Method on WordPress Forms first appeared on WPBeginner.

How to Get your Visitor’s Location from their IP address

The PayPal website mentions a list of 200 countries where the PayPal service is officially available. There are about 46 countries and regions left where buyers cannot transact using PayPal.

Countries where PayPal is not available

As highlighted in the Google Map above, the regions where PayPal is not available includes Afghanistan, Bangladesh, Cuba, Ghana, Iraq, Iran, North Korea, Lebanon, Liberia, Libya, Pakistan, Palestine, Sudan, Syria, Turkey and Uzbekistan.

If you have a digital goods store that relies exclusively on the PayPal service for processing payments, you could be losing business as customers from countries like Bangladesh, Turkey or Pakistan would not be able to make payments.

As an alternative, you can sign-up for a non-US payment processing service - Paddle and FastSpring are good alternatives - and offer these as payment options on the checkout screen to customers who land on your website from countries where PayPal is unavailable.

Detect the Country of your Website Visitors

I have implemented a similar technique for my Google add-ons website and it seems to work well. The website uses PayPal and Stripe as the default payment handler but if someone lands from a non-supported country, the PayPal buttons are hidden and they are offered an option to checkout with Paddle.

To get the website visitor’s location, I use the ip2c.org service that quickly resolves the visitor’s IP address to their country. If you fetch the ip2c.org/self service, it returns the ISO code of the country of the computer that made the HTTP request.

const getVisitorCountry = () => {
  return new Promise((resolve, reject) => {
    window
      .fetch("https://ip2c.org/self")
      .then((response) => response.text())
      .then((data) => {
        const [status, country] = String(data).split(";");
        if (status !== "1") {
          throw new Error("Unable to fetch country");
        }
        resolve(country);
      })
      .catch(() => {
        resolve("US");
      });
  });
};

getVisitorCountry().then((country) => {
  if (["PK", "BD", "TR", "AF"].indexOf(country) !== -1) {
    // show Paddle Buttons
  } else {
    // show PayPal buttons
  }
});

Some online stores follow the “Purchasing Power Parity” theory (learn more) where non-tangible goods like video courses and software licenses are priced dynamically depending on the country of customers. The above client-side approach for detecting the visitor’s location can be help in such scenarios as well.

Purchasing Power Parity

How to Build Order Forms with Payments for Free in WordPress

You lose 100% of the sales you don’t ask for, and the same holds true for having a clunky checkout experience. Order forms help you to collect order information and process payments efficiently, thereby increasing your conversion rates significantly.

Forminator makes it easier than ever to build an order form and accept payments on WordPress. Oh ya…and the best part is, it’s completely free! And that includes PayPal and Stripe payment gateways!

Whether you’re planning to sell merchandise, collect donations or get rooms booked, Forminator does them all without skipping a beat. His simple drag-and-drop interface means that you don’t need to know any coding whatsoever. It’s truly the one form maker plugin to rule them all!

**Long live Forminator!**

In this post, I’ll show you step-by-step how to use Forminator to build an order form from scratch and have set it up to collect payments effortlessly with Stripe and/or PayPal.

Introducing the Fantastic Forminator

Forminator is a powerhouse of a form plugin. He supports conditional logic, stores all the form entries in an easily accessible database, sends emails to both the user and the admin, and does it all without reloading the page.

To supercharge your forms, Forminator integrates with popular third-party tools such as Mailchimp, AWeber, ActiveCampaign, Google Sheets, Zapier, and Slack. Here’s an integration guide to automate your form workflow with Zapier.

He’s also GDPR compliant and works seamlessly with WordPress’ new Gutenberg block editor. If you can think of a form, Forminator can almost certainly get it done.

Let’s Build an Order Form

For this demo, we’ll build a simple order form, like the one below, to sell a custom notebook. We’ll make it so that the users can enter their personal information (such as name, address, email and phone number), and then at the very end, place an order by completing the payment.

Screenshot of the order form we'll be building

Follow the steps below and/or enjoy the video we’ve put together to accompany this post:

 

Step 1: Install Forminator

To install Forminator, just go to your WordPress Dashboard, and under Plugins, choose Add New and search for Forminator. Click the Install Now button and Activate the plugin after installation.

If you’re a WPMU DEV Member, you can also install and activate Forminator Pro directly from the WPMU DEV Dashboard. If you’re not a member yet, what are you waiting for? Try it free for 30 days!

Using the free WordPress.org version of Forminator is totally cool too. This tutorial works perfectly fine with either version.

Step 2: Access the Forminator Dashboard

Go to Forminator’s Dashboard. This will give you a quick overview of all your forms, quizzes, and polls.

Forminator’s minimalist yet easy-to-use Dashboard.

You won’t see any data here now, but as you start creating forms and collecting user entries, the dashboard will start populating with views, submissions, conversion rates, and other interesting data.

Step 3: Let’s Create a Form

Go to Forminator > Forms and click either of the blue Create buttons to begin making your new form. You can also do the same directly from Forminator’s dashboard.

A popup will appear where you need to enter your new form’s name. Keep the form name unique and memorable so that you can recall it easily. Click the blue Create button after entering your form name.

By default, every form in Forminator comes with the following predefined fields: First Name, Email Address, Phone Number, and Message.

The default form fields can be edited or deleted, and with the option of adding many other fields, you have unlimited customization possibilities.

Note: The fields marked with a red asterisk (*) at the end are Required fields. The form won’t submit until the user fills them up.

Step 4: Adding the Order Form Fields

We’ll keep the First Name, Email Address and Phone Number fields, and delete the Message field which we don’t need for this form.

In the First Name field, click on the gear icon and select Duplicate. This is a faster way to insert multiple fields of the same type without accessing the Insert Fields menu repeatedly.

Rename the duplicated field as Last Name.

Drag the Last Name field to the same row as the First Name, to its right, so that they appear side by side in the form.

And just like that, you have a two-column row in your form.

All Forminator fields can be dragged and dropped into rows and columns, so you have maximum flexibility in designing your forms just the way you want them.

Next, click on the purple Insert Fields button. It should open a popup with all the field options you can add to the form. There’s also another Insert Fields link at the bottom of the form.

Select the Address option from the popup window, and click the Insert Fields button.

Once inserted, click on the Address row to open its field settings. In the Labels tab, you can activate or deactivate the different address subfields (they’re all enabled by default).

Underneath the Settings tab, mark all the address subfields as required since they’re essential to ship the product.

Finally, click on the gear icon of Message field and hit Delete.

You can retain the Message field if you want to give users an option to add a comment or preference.

Step 5: Adding the Stripe Payment Button and Integration

Click on the purple Insert Fields button and select the Stripe option.

Stripe enables you to supercharge your online sales with its hassle-free and secure payment gateway.

Note: You need an activated Stripe account to configure the Stripe field. Otherwise, it won’t let you edit it. If you need help to set it up, use Forminator’s documentation as a cheatsheet.

You can configure Stripe by going to Settings > Payments > Stripe under Forminator.

Once Stripe is configured, under the Stripe field settings, we need to set the payment amount. Since this is a single product with an all-inclusive price and no variations, we’ll select the Fixed payment option.

When user inputs affect the price (ex. different sized t-shirts or customization options), or if there is a calculation such as tax or shipping that will be added to the original price, the Variable option should be used instead.

Select Fixed in the Stripe field settings and enter the amount.

Also, note the Test and Live mode options mentioned on the top here. We’ll be using the Test mode for now.

Don’t forget to set your brand logo, company name and product description under the Checkout tab. It’s great to have a self-branded payment gateway popup.

The below image shows how the self-branded popup will look like. Cool, isn’t it?

Next, change the Submit button label from Send Message to Order Now.

Preview the form and ensure it’s working as you intend. You can edit the default placeholders in the form if they’re not to your liking.

The order form is good to go!

Step 6: Let’s Jazz It Up

Forminator lets you make basic style changes to the form easily. The Appearance section helps you set your form’s Design Style, Colors, Fonts, Padding, Borders, Spacing, etc.

Click on the Appearance button to move on to its settings.

You can choose your preferred style here. I like the look of the Flat style more than the Default one, however this choice is up to you. It also offers you a way to add Custom CSS for your form.

As for the Colors and Fonts, I prefer the theme defaults and will leave them as is. Save your form draft after making your changes.

Step 7: Form Submitted. Next What?

Forminator is like a cool and casual professor. He’s fun and intelligent, but he also makes sure that the forms behave properly.

In the Behavior settings, you can define how the form will behave after the user successfully submits the form, or in this case, places an order.

By default, the form will show an inline message that will close automatically within 5 seconds. Change the message here to better reflect an order form.

You also have the option of redirecting the user to a new page or hiding the form altogether.

If you’re collecting payments, it’s highly recommended that you have the “Require SSL certificate to submit this form” option checked. It’ll enable your form to collect payments securely.

The rest of the Behavior settings can be left as is.

Step 8: Email Me Please, and to the User Too

After finishing up with setting the Behavior, move to the Email Notifications settings.

By default, every form will send you (the admin) an email with details of all the form fields entered.

You can change it and/or add multiple recipients too. You also have the option of adding Cc and Bcc fields to the email.

It’s good practice to send an automatic order confirmation email to the user. This option can be enabled in the Email Notifications settings.

Make sure that the recipient here is set to Email Address, which is the label for the email address entered by a user in the form. For example, if a user enters username@gmail.com as their email address in the form, the order confirmation email will be sent to that address automatically.

Forminator also lets you set Integrations with various third-party apps, and change the overall form settings. For this order form, we won’t be adding any Integrations, and will stick to the default settings.

Step 9: Hit the Publish Button

Preview the form one last time before pressing the Publish button.

Hey, give yourself a pat on the back. You just created your first order form!

After hitting the Publish button, a popup will present you with the form’s shortcode. Copy and place this shortcode anywhere in your site to display it to users.

You can also copy the shortcode later from Forminator’s Dashboard.

Step 10: Add the Order Form to Your Sales Page

Create a sales page if you don’t have one yet. It should contain all the important product details such as name, image, description, price, etc.

If you’re using the Classic Editor plugin, you can copy and paste the shortcode to add the form to your post/page. For sites that are using the default Block Editor, adding a form is much simpler.

To place the order form at the bottom of your sales page, in your WordPress post/page editor, click the Plus icon and add a Form block.

Next, select your order form from here to add it to the page.

Publish or Update your sales page after you’ve added the order form to it.

Visitors to your website can now use this form to place an order. It’s that simple!

Important Note: The Stripe field in your order form is still set to Test mode. This is to help you make test payments and make sure that everything is working fine. Before accepting actual orders, you need to change it from Test to Live.

Once an order has been placed, you’ll be notified of it via mail. Forminator also stores all the form submissions in a database so that it’s easier for you to sort through them later.

To view all of a form’s submissions, visit Forminator > Forms in your dashboard. Click on the gear icon and select View Submissions.

You can click on any individual submission row to get its complete details. You can also push the Export button to download all the submissions as a .csv file.

Reach > Engage > Convert

Running an online business comes with a lot of challenges. Anything that helps you engage with your potential customers and get paid easier is a welcome addition, and that’s exactly what Forminator does.

What we’ve built here is the simplest of order forms that you can make with Forminator. With its support for conditional logic, it can do much more! You can set taxes, shipping rates, product variations, and then have the form calculate the final order amount automatically.

You can check out a few of the order form and payment demos here and see how versatile Forminator really is.

Start creating!

How to Sell Digital Products Online with Google Drive and PayPal

The web has made it incredibly easy for anyone to sell digital products directly to customers through websites, social media, and email newsletters. You can sell PDF ebooks, MP3 music, photos, software apps, gift cards, license keys, coupon codes, website templates, fonts, graphics, video courses, and many more downloadable files.

While there are quite a few e-commerce platforms that help you sell digital products – Gumroad, E-junkie, Paddle, FastSpring, Shopify, Instamojo and WooCommerce, to name a few,  here’s a do-it-yourself solution that will help you build your own digital store in under 5 minutes using PayPal and your Google account.

How the workflow works?

Before we get into the implementation, here’s a big-picture view of how the payment and digital delivery workflow works.

  1. Embed the “Buy Now” buttons into your website or blog. Buyers can pay with all major credit cards using 1-step checkout.
  2. Buyer clicks the button, enters the card details and completes the payment. The customer stays on your site and isn’t redirected anywhere to complete the purchase.
  3. The order is delivered to the customer in a personalized email message. You can also attach a tax invoice in the confirmation emails.

You can head over to the live demo page and experience the 1-step checkout experience on your desktop or mobile phone.

Sell Digital Downloads with PayPal and Google Drive

The workflow uses Google Drive for securely hosting files, PayPal for processing payments, Google Sheets for generating professional PDF invoices and Gmail for delivering the order to the buyer as file attachments.

There are no limitations on the size of files or the number of products that you can sell. There are no bandwidth or storage restrictions. There’s no transaction fee except for the payment processing fees that are charged by PayPal and Stripe.

Get Started Selling Digital Goods

Here’s a step-by-step video tutorial that explains how you can easily sell digital products with PayPal and Google Drive.

Step 1: Create a PayPal App

Go to developer.paypal.com and sign-in with your PayPal account. If you don’t have one, sign-up here for a new Business account.

Inside your PayPal dashboard, go to My Apps & Credentials > Rest API Apps and create a new app. You can give your app any name as it is for internal use only. PayPal will now create client credentials for testing and live transactions that we’ll need in the next step.

Step 2: Create a PayPal Webhook

When a buyer completes the purchase and makes the payment, PayPal will send your app a notification by calling a specific URL and this is known as a webhook.

To create a webhook, go to digitalgoods.dev/copy and copy the Google Sheet to your Google Drive. Inside the sheet, go to Tools > Script Editor, the choose Publish > Deploy As Web App and click the Update button to create your PayPal webhook. Copy the URL to the clipboard.

You will have to authorize the script once since it has to do all the operation – send emails, attach Drive files, generate PDF invoices – on your behalf.

Step 3: Configure App inside Google Sheet

Switch to the “Configuration” sheet inside the Google Spreadsheet and paste the webhook URL inside the “webhook” field. Next, copy-paste the Client ID and Secret generated in step 1 inside the corresponding fields of the Google Sheet.

paypal-app-configuration.png

There are few other mandatory fields in the sheet. Choose your default currency, the shipping preference (whether you want to capture the address on the buyer), specify your brand name and the soft descriptor (this will show in the credit card statement of the buyer).

Go to the Digital Goods menu in the sheet (it is near the Help menu) and choose Test PayPal Configuration to verify the PayPal-Google Sheets connection.

Step 4: Add your Digital Products

Switch to the “Items” sheet and enter the default tax rate in the cell E1. Next, add one or more products in the sheet. You only need to specify the price of the item in column D, the Tax and Total Amount is automatically calculated based on the tax rate set in E1.

PayPal Digital Products

To attach files to your digital product, highlight the Files column, then go to the Digital Goods menu and choose Attach Drive Files. It opens the Google File picker and you can select one or more files from your Google Drive that will be sent to the buyer after they purchase the corresponding product.

Step 4: Create the Tax Invoice Template

Switch to the “Invoice” sheet and customize the invoice template. You can use formulas, add your logos, apply styles to match your brand and the template would be converted to a PDF file and sent as a file attachment in the order confirmation emails.paypal-pdf-invoice.png

The invoice template can include placemarkers, similar to the ones you have used inside Document Studio. For instance, the {{Name}} variable will be replaced with the full name of the customer as found in the PayPal order. The {{Email}} variable is replaced with the buyer’s email address while the {{Invoice Id}} adds a unique invoice number to your invoice.

Step 5: Create the Order Confirmation Email

Switch to the “Email” sheet and create the HTML template that will be sent to customers after they complete the payment. The email will automatically include the files and invoice as attachments but you can customize the email message and subject.

The first row in the sheet is the subject and everything else will go in the message body. The emails, like Mail Merge, can be personalized and you can also use HTML tags to add images, links and rich content in the emails.

Step 6: Test your PayPal buttons

Now that you have added the products to the Google Sheet, it is time to test the integration in sandbox mode before you embed the buttons on your live website.

Go back to your PayPal dashboard, and choose Credit Card Generator in the right sidebar. Here you can generate random credit card numbers with expiration date and CVV for testing your buttons in sandbox mode.

Inside the Google Sheet, choose Digital Tools > Embed PayPal Buttons to generate the HTML embed code for your digital products. The screen offers embed codes in both the live mode and the sandbox mode.

embed-paypal-buttons.png

Click the Try button next to the Sandbox mode and you’ll be able to test the buttons right inside the Google Sheet. Click the credit card icon, enter the mock credit card number and click “Pay Now” to complete the test transaction.

PayPal invokes the Webhook and it triggers the order workflow. Switch to the “Logs” sheet and you’ll soon find a new entry for the transaction that you just completed. Open your Gmail Sent items folder and you’ll find a copy othe f email that was sent the buyer’s email.

If your integration is working as expected, go to the Embed PayPal menu in the sheet and this time copy the embed code for the “Live” mode and paste it in your website. Your product is now live and anyone in the world can buy your product with a single-step checkout.

Here’s a sample email that will go out to customers after the purchase.

order-confirmation-email.png

All the incoming orders can be tracked in real-time inside the “Sales” tab of the Google Sheet. The sheet includes the customer’s name, email address, the order summary and the buyer’s postal address. The address is only available if you have set the shipping preference in the configuration sheet to “GET_FROM_FILE”.

You can directly run Mail Merge with Gmail inside this sheet to easily send product updates to existing customers. If you have been using PayPal prior to switching to Digital Goods, put all the PayPal emails under a new Gmail label, extract the email addresses inside the sheet and use that list for your merge.

How to Sell Unique License Keys & Codes

In some businesses, you may want to send unique codes to the customer. These may include license numbers to unlock software apps (like we do at Digital Inspiration),  passwords to access streaming video courses, discount coupons, gift cards, event registration numbers and more.

software-license-codes.png

This is easy with Digital Goods. Open the “Codes” sheet in the spreadsheet and the pregenerated list of codes in one of the columns. Give this column a title as shown in the screenshot above. Next, include the {{column title}} in your email mesage and a unique code will be added in place of the marker.

Internally, the app looks at the last row of the Sale sheet (the current order), fetches the codes from that same row in the Codes sheet and adds them to your email / invoice.

Troubleshooting Tips

The video tutorial explains the entire workflow in great detail but if you are still facing any issues, here are some tips:

  1. Go to the configuration sheet and set “yes” for the debug setting. Next, do a test transaction inside sandbox mode and check the Logs sheet for any errors.
  2. Go the Digital Goods menu and run Test Configuration again to ensure that your PayPal sandbox and live credentials are correct.
  3. PayPal, in rare cases, may delay the delivery of webhooks. Go to the PayPal dashboard and choose Webhooks (link) to get a list of recently-processed webhook events and their status. You can open a case at paypal-techsupport.com for help.
  4. Make sure that you have not renamed or deleted any of the original sheets in your copied Google Spreadsheet.
  5. Open your Chrome Dev Tools, switch to the network tab and make sure that your adblockers are not blocking the PayPal script.

If you are unable to resolve the issue, write to me at amit@labnol.org or tweet @labnol.

The post How to Sell Digital Products Online with Google Drive and PayPal appeared first on Digital Inspiration.