Create Your First Online Store with Drupal Commerce
Illustration by Neil Webb

Accepting PayPal payments


From:

Create Your First Online Store with Drupal Commerce

with Tom Geller

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Video: Accepting PayPal payments

If you listen to rap at all, you know you've gots to get paid. So before we do anything else, let's look at how Drupal Commerce handles payments. I'll first show you how its example payment system works; that lets you test your store without involving any real money. Then I'll show you how to hook up your store to a PayPal account. To get started, we click Configure store, and Payment methods. Then let's go down to Example payment, and edit it. This page will become extremely familiar to you as you use Drupal Commerce.
Expand all | Collapse all
  1. 16m 44s
    1. Welcome
      54s
    2. Previewing the finished project
      4m 10s
    3. Surveying the store-building process
      4m 29s
    4. Using the exercise files
      7m 11s
  2. 12m 12s
    1. Installing Drupal Commerce using Commerce Kickstart
      6m 5s
    2. Configuring your store's basic information
      6m 7s
  3. 31m 29s
    1. Accepting PayPal payments
      5m 9s
    2. Setting up individual products
      3m 17s
    3. Displaying products
      6m 30s
    4. Categorizing products
      5m 31s
    5. Adding simple taxes
      4m 39s
    6. Seeing your site from the customer's viewpoint
      3m 26s
    7. Processing orders
      2m 57s
  4. 17m 39s
    1. Understanding products and other entities
      3m 3s
    2. Understanding line items
      3m 16s
    3. Understanding rules
      5m 10s
    4. Integrating your store into a Drupal site
      6m 10s
  5. 29m 46s
    1. Adding product variations
      7m 2s
    2. Managing product variations
      3m 50s
    3. Importing simple products
      10m 11s
    4. Importing complicated products
      8m 43s
  6. 29m 52s
    1. Shipping products
      4m 50s
    2. Managing inventory
      4m 30s
    3. Managing orders
      5m 39s
    4. Managing customer profiles
      4m 55s
    5. Using Views to gain better oversight
      5m 0s
    6. Accepting other payment methods
      4m 58s
  7. 24m 52s
    1. Changing your store's look
      6m 24s
    2. Streamlining the checkout process
      5m 19s
    3. Launching your store
      13m 9s
  8. 29m 25s
    1. Offering product discounts
      8m 56s
    2. Gaining insight from Google Analytics
      5m 45s
    3. Making your site more visible to search engines (SEO)
      5m 52s
    4. Encouraging customer buzz
      8m 52s
  9. 56s
    1. Goodbye
      56s

please wait ...
Watch the Online Video Course Create Your First Online Store with Drupal Commerce
3h 12m Intermediate Nov 17, 2011

Viewers: in countries Watching now:

This course shows how to build an online store using Drupal Commerce, a set of modules that extend Drupal. Author Tom Geller teaches the basics of configuring a store, processing a payment, and charging for shipping and taxes, as well as creating, displaying, and categorizing products. The course also explains how to integrate a store into a Drupal site, customize a store's appearance, and increase site traffic using search engine optimization (SEO) techniques.

Topics include:
  • Surveying the store-building process
  • Installing Drupal Commerce using Commerce Kickstart
  • Accepting PayPal payments
  • Processing orders
  • Understanding rules and line items
  • Listing and importing products
  • Managing inventory, orders, and customer profiles
  • Streamlining the checkout process
  • Launching a store
  • Offering product discounts
  • Analyzing site traffic with Google Analytics
Subjects:
Business Web
Software:
Drupal Drupal Commerce
Author:
Tom Geller

Accepting PayPal payments

If you listen to rap at all, you know you've gots to get paid. So before we do anything else, let's look at how Drupal Commerce handles payments. I'll first show you how its example payment system works; that lets you test your store without involving any real money. Then I'll show you how to hook up your store to a PayPal account. To get started, we click Configure store, and Payment methods. Then let's go down to Example payment, and edit it. This page will become extremely familiar to you as you use Drupal Commerce.

This is the interface for a Drupal module called Rules, which comes with the Commerce Kickstart. Basically, Rules comprises three parts. This part at the top, Events, is what sets the rule in motion. In this case, it happens whenever a customer selects a payment method from a pop-up menu. The Condition section tells you what has to be true for the action to take place. For example, you could decide to accept PayPal payments up to only a certain dollar amount. If the order is bigger than that, the action simply won't fire.

This payment has no conditions. Customers can use it for all orders. Finally, Actions tells you what is actually going to happen when that event occurs. In this case, it's simply to allow customers to use this payment type. We will talk more about rules in the video about understanding rules. If you want to, you can read a lot more about it at drupal.org/project/rules. But, for now, we have no changes to make. So we will just get out of here by closing this overlay.

Now, let's let customers pay using PayPal, which is one of the most popular methods of payment on the internet. To accept such payments, you have to get an account at paypal.com, and specifically it's at developer.paypal.com. I won't go into the details. For that, see the lynda.com series eBay for Sellers Essential Training. I already created an account: lyndaaccounttest@yahoo.com. We are going to have to have that when we go to configure the module.

But Drupal Commerce Kickstart doesn't come with that module preloaded. We are going to have to get it from drupal.org. You can do so by going to drupal.org/project/commerce_paypal. From there, you scroll down to the version that you want to install. At the time that I'm recording this, it's still in Development version. I know that it works, because I've tried it, but of course, you're going to want to use whatever is the most stable version available at the time you see this. You will right-click, or Command+Click, in order to copy this link location, and then you will install this as you do any other Drupal module.

For more information on that, you can see my lynda.com course, Drupal Essential Training. But we will just go up here in Modules >Install new module, and paste the URL that we just copied. This is the way that you install all modules. Click Install, and then we will enable it by clicking Enable newly added modules. Once again, we close up these groups, so that we get down to our Commerce group, and then we look for our PayPal module. There is our payment method example, and payment, which are already enabled, because they come with Commerce Kickstart, and here's our PayPal modules.

We are going to use PayPal, and WPS. There is also a Payments Pro that we won't get into. Scroll down to the bottom, and save configuration. Once that's done, we can actually go and configure that payment method. Once again, we go back up to Configure store where we were before, and Payment methods. Now we see an extra choice down here: PayPal WPS. We enable it by going over to the Enable link, and clicking it. Then make sure we want to; yes, we do. It's now almost ready to use, but we still have to edit it to put in our PayPal information.

So we click Edit, and down to our Actions, which we have to edit, and there is the spot we put in our PayPal e-mail address. Scroll to the bottom, and click Save. Now, I do want to mention a few of those other options that we skimmed over there. I'll click Edit, and take another look. First is the choice between Sandbox and Live. By default, you're not actually going to start accepting payments.

Instead, it's going to be a way that you can test accepting payments without transacting any real money. When you're ready to switch over, you will change it to Live, of course. Then there are some other options at the bottom, which aren't as important for our purposes, so we'll just click Save. So we now have two payment methods, which we can see once again by going to Configure store, and Payment methods. We have the Example payment, and PayPal WPS. These show up when somebody buys a product from our site, and then tries to pay for them.

Since we don't have any products yet, we can't demonstrate payment methods. But you will see how that works after we start adding some products to our site. We are now ready to start accepting customer's money, at least through PayPal, but customers still don't have a reason to pay us. So the next step is to start listing some products in our store.

Find answers to the most frequently asked questions about Create Your First Online Store with Drupal Commerce .


Expand all | Collapse all
please wait ...
Q; Where can I learn more about how to make a website?
A: Discover more on this topic by visiting how to make a website on lynda.com.
 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Create Your First Online Store with Drupal Commerce .

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.