O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding simple PayPal integration to content types

Creating an online shop can be a daunting task. In this recipe, we will see a method where we add PayPal payments to a content type. We will do this with minimal integration, simply by creating a Product content type with a field to paste generated button code from PayPal.

After completing this recipe, you will have produced a Product node which can be purchased with a Buy Now link, as follows:

Adding simple PayPal integration to content types

Getting ready

You will need to have a PayPal business account with Website Payments Standard enabled.

How to do it...

In this recipe, we will begin by creating a new Product content type that will have one custom ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required