The Payment Module: A Simpler Alternative to Drupal Commerce

drupal-payments

Here at OSTraining we’ve given significant coverage to Drupal Commerce. You can watch a video class with nearly 30 lessons and download a book, “Building E-commerce Sites with Drupal Commerce“.

However, Drupal Commerce is an enterprise-quality solution and a good number of OSTraining members have asked for simpler solutions.

For those members, we often recommend the Payment module, which makes it easy to add e-commerce fields to your content.

Payment supports about half-a-dozen gateways (PayPal, Stripe, iDEAL, Authorize.net, Ogone, Rabo OmniKassa).

In this tutorial, we’ll show you how to use the Payment module, together with PayPal.

Installation and Configuration

media_1413322588233.png
  • Go to Configuration > Payment.
  • Click “Add payment method”
media_1413320043847.png
  • Choose “PayPal Payments Standard”.
  • Enter a Title, such as “PayPal”.
  • Enter your PayPal email into the “PayPal account email address” field.
media_1413320109680.png
  • By default, there are two default payment options, “Collect on delivery” and “No payment required”. If you don’t want users to be able to choose those options, you can go to Configuration > Payment > Payment methods and you can disable them.

Add a field to the content type

  • Go to Structure > Content types
  • Add a field using the “Payment form” type:
media_1413320405902.png
  • On the field settings, choose the currency you want to use:
media_1413320551410.png

Create a product

  • Click Add content and choose a content item you want to add a PayPal button to.
  • Under the Body, in the fields area, you’ll be able to enter the product details:
media_1413320681244.png
  • Save the content.
  • This is how your content will appear on the site:
media_1413320750421.png
  • If people click the “Pay” button, they’ll be redirected off your site and to Paypal.com:
media_1413320765846.png
  • Once the payment is finished, the user will be able see details of the payment:
media_1413320952014.png

Seeing the payments

After people have made purchases on your site, you’ll be able to see and organize all the payments.

  • Go to Content > Find Content
  • Click the Payments tab in the top-right corner.
  • You’ll now be able to see all the payments that have been made, including their status.
media_1413321227146.png

Payments does also integrate with Views (the image see above uses Views) so you can create your own layouts to see payments.

Summary

The Payment module is a basic, but effective alternative to Drupal Commerce.

Particularly if you don’t want to require user registration or do significant configuration of your site, Payment is a good option for collecting money via your Drupal site.

Author

  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

    View all posts
0 0 votes
Article Rating
Subscribe
Notify of
guest

24 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Bart
Bart
9 years ago

Thanks for writing this article! I just wanted to add that Payment was designed to process payments (and not much else) and if you don’t need a complex order management or checkout process, it can indeed be used as a basic alternative to any e-commerce package for Drupal. It mostly just does a better job at payment processing than Drupal Commerce or Ubercart and can even be used as a replacement for those packages’ own payment processing APIs.

steve
steve
9 years ago
Reply to  Bart

Thanks for writing the module, Bart
It definitely fills a large hole that had existed in the Drupal ecosystem for simpler shopping carts.
Because of a lack of options, we used to sometimes recommended that people use Shopify or similar systems, and drop the embed code into a node. It wasn’t ideal.

pepperstreet
9 years ago

Very interesting. Bookmarked! Thought this is a domain for other systems like Joomla, WP.

Anna
Anna
9 years ago

Thnx for the article !!!!!!! I just wanted to ask if it is safe with that process?

Teresa Compton
Teresa Compton
9 years ago

Hello, I was wondering if you knew of any way to leave the payment amount open-ended. Similar to a way that the paypal donate buttons work? I cannot use a paypal donate button because it is for invoice payment, not donations, and paypal specifies that button only be used for non-profits. For example, a user would fill out a simple webform, or click a button, and be able to enter any amount they wanted to pay, and make a payment that way. Can this be done with Drupal Payments?

steve
steve
9 years ago
Reply to  Teresa Compton

Hi Teresa
Maybe try any additional module such as: [url=https://www.drupal.org/project/payment_donation]https://www.drupal.org/proj…[/url] (caveat, I haven’t used that particular one)

Dori Kelner
Dori Kelner
9 years ago
Reply to  steve

Teresa, did you have any luck solving your issue? I too would like to use a form to collect information (preferably webform) and have an open-ended payment amount.

Mgs Schneider
Mgs Schneider
9 years ago

Thanks for the good writeup! the payment form field also requires the currency api module. perhaps not that obvious.

zJoriz
zJoriz
8 years ago

This sounds very promising! I thought Commerce was too complicated as well. Will definitely be playing with Payment instead..

Stephen R Cork
Stephen R Cork
8 years ago

Is there a simple way to allow user to put in the $ amount they want to pay?

Goli Houssou
Goli Houssou
8 years ago

Hi.

i am looking for a way to build an employee paiement system.

Should i start with drupal commerce?( Wich looks like just to be paid and not to pay for services )

Should is tart with a paiement module?

Should i start with a work trackin module ?

Larry Li
Larry Li
8 years ago

Mine is a marketplace website which allows sellers to sell electronic product, and buyer pays to my website (via paypal), and then my website pays the seller also via paypal. There are two paypal fees involved.

Is it possible to send money from buyer’s paypal to seller’s paypal directly from my website?

frlevel
frlevel
8 years ago

Hi,

Thank you for this module. It is exactly for what I looked.

1 questions :

– when the Paypal page is displayed, it’s the Drupal system name that is displayed, not my description. How I may change it ?
Thank you very much for your response

Francois

pedroperez
pedroperez
8 years ago

Hi,

Is it possible to create a page to buy something like credits?

A page where the person can say how many credits wants to buy and after will pay with paypal?
Thanks!

Julie
Julie
8 years ago

Hello,
Thanks for this article !!
I have 2 questions :

– On the “Payment” page I dont have “Payment methods” like you, how to enable or manage payment methods ?
– Is it possible to allow the user to change quantities ?
Thanks you !!

Nick Savov
8 years ago
Reply to  Julie

Hi Julie,
Glad you enjoyed the article!
Please sign up for one of our support plans at

[url=https://www.ostraining.com/pricing/]https://www.ostraining.com/…[/url] and our Drupal tech will be glad to

help.

Nick Savov
8 years ago

@stephenrcork, @golihoussou, @frlevel,
If you still need help, please sign up for one of our support plans at [url=https://www.ostraining.com/pricing/]https://www.ostraining.com/…[/url] and our Drupal tech will be glad to help.

jubadoobai
jubadoobai
8 years ago

For the past day and a half or so, I’ve been wrestling with Drupal 8 + Commerce 2 attempting to get a client’s store up and running—the client is insistent on Drupal 8, warts and all. Finding the pieces to make it so is not easy, and neither is making the changes from Drupal 7 to Drupal 8. All in all, this has been helpful. Thanks.

steve
steve
7 years ago
Reply to  jubadoobai

@jubadoobai Definitely looks like early days for Drupal Commerce on Drupal 8 [url=https://drupalcommerce.org/blog/45961/drupal-commerce-20-enters-beta]https://drupalcommerce.org/…[/url]

fordp86
7 years ago

Is there anyway to combine multiple payments into a cart? Like I am making a webform with multiple amounts you can choose from based on your level of interest in becoming a conference Vendor. I attached the paper version of the “form”. Any ideas will help! 🙂 [urlcomment image]https://uploads.disquscdn.c…[/url]

Daniel Pickering
7 years ago
Reply to  pfhenley86

Hi pfhenley
What I would do is make variants of the product that have different payment groups and brackets.
Thanks

Daniel

fordp86
7 years ago

Hmm, so with Panels? I’ve tried to avoid panels but I’m willing to try anything right now to get it done. I wanted to more of a dropdown of prices with conditionals if the check box is checked. and then once the form is submitted it creates a payment node with the total of the values selected using rules but I couldn’t figure out how to really connect the two properly. Like I can list everything as payments but the problem is that if they want to pay for a booth and donate a grant I can’t combine the payments into one total payment. If that makes sense.

jorodr
6 years ago

Hello,
Is it possible to integrate this module payment field to programatically created forms, not just content types?
Thanks in advance

Frank
Frank
6 years ago

On PayPal Express Checkout, the password is stored as clear text.
Crating a new payment item requires tax. My itmes do not have tax.
More errors: Quantity “1” is no integer, Quantity “1,0” is no number Quantity should be given as..?
What the heck..

24
0
Would love your thoughts, please comment.x
()
x