Menu icon
RedCrackle
Menu icon
Services
01Design Transformation
About UsCase StudiesBlogContact Us

<

Blog post

Accepting payment via PayPal

Neerav Mehta

Founder & CEO

This is tutorial #9 in the Drupal Commerce tutorial series. In the previous article, we enabled Authorize.Net Payment Gateway for the site. This article will focus on PayPal.

PayPal is easily the world's most preferred payment solution. Drupal has several competent modules that can handle PayPal transactions. In this article, we will be downloading, enabling and configuring the Commerce PayPal module.

By the time you are the done with this article, you will be able to view the PayPal options as part of your checkout process just like in the screen below:

PayPal

Let’s get started. First, you will need a PayPal account. Visit here in case you don’t have one.

Let’s now proceed to install Commerce PayPal. Type www.drupal.org/project/commerce_paypal in your browser window.

Download the latest version of the tar.gz file to your modules folder. Unzip and enable it in Administration.

Go to “Administration” -> “Modules”. Search for “PayPal”. Make sure PayPal and PayPal WPS are enabled before proceeding.

PayPal

Click “Save configuration” at the bottom of the page:

PayPal

Click “Store” on the top-level menu:

PayPal

Click “Configuration”:

PayPal

Click “Payment methods”:

PayPal

You will find “PayPal WPS” listed in the “Disabled payment method rules” table:

PayPal

Click “Edit” on the right of “PayPal WPS”:

PayPal

On the new page, look out for the table called “Actions”. You will find “Enable payment method: PayPal WPS” listed under it. Click “Edit”:

PayPal

In the new page, you will come across a lot of settings. We will deal with them one by one.

The first box allows you to choose a Data selector

PayPal

Data selectors are associated with the rules created by you. You can specify a data selector from the dropdown to make use of a rule. I have left mine as default.

Under the “PAYMENT SETTINGS” section, you will come across the following fields:

  • Enter the email address used by you to create a PayPal account:
PayPal
  • Specify the currency your PayPal account is associated with. By default, the value provided is USD:
PayPal
  • Tick the box against "Allow transactions to use any currency in the options list above" if you want your e-commerce store to accept and convert all currencies to the currency of your choice:
PayPal
  • Select the country of your choice in the dropdown below. It should be the country you wish to do business in (where a majority of your target audience resides):
PayPal
  • Are you planning to test the payments in a demo environment? If yes, choose “Sandbox - use for testing, requires a PayPal Sandbox account” under “PayPal server”. Go for “Live - use for processing real transactions” only if you are launching the site and need real-time results.
PayPal
  • Under Payment action, you can decide whether you want to process payment immediately or authorize the payment so that it can be collected at a later stage. Choose any of the options below:
PayPal
  • IPN represents Instant Payment Notifications (IPNs). Drupal's default setting is “Log notifications during IPN validation and processing”. You may select “Log notifications with the full IPN during validation and processing (used for debugging)” if you want to debug any PayPal errors that may arise during the payment process.
PayPal
  • Enter a list of email addresses associated with your PayPal account. IPNs will be sent to this address:
PayPal
  • Select “Create a billing profile…” if you need to create a customer billing profile featuring his address details.

  • Select “Show a message…” if you want the message Continue with checkout to complete payment via PayPal to be displayed during the shopper select PapPal WPS as a payment option.

PayPal

Click “Save” at the bottom of the page to save your configuration.

Follow this path once again: “Store” -> “Configuration” -> “Payment methods”. Click "enable" next to “PayPal WPS” under “Disabled payment method rules”:

PayPal

You will get the following screen. Click “Confirm”.

PayPal

You have now successfully configured PayPal for your machine.

Head over to your site’s check out process. You will find options to opt for PayPal. Here is how it will look:

PayPal

Next: Adding VAT Tax To The Bill

Neerav Mehta

Neerav Mehta

Founder & CEO

Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.

View all posts

>

Read Next

10 Ways To Increase Productivity At Work

10 Ways To Increase Productivity At Work

Learn more

11 Project Management Tips For New Managers

11 Project Management Tips For New Managers

Learn more

30 best WordPress widgets for your site

30 best WordPress widgets for your site

Learn more

Let’s get you started!

Contact Us

>

RedCrackle

Explore

About Us

Services

Contact Us

Our address

5346 Gerine Blossom Dr,

San Jose, CA 95123

USA

Socials

Twitter
LinkedIn

© 2026 RedCrackle. All rights reserved.