paypal

Paypal express checkout and drupal (updated + smart buttons)

Submitted by Nicholas on Sun, 04/25/2021 - 10:38

Two years ago, I wrote a blog demonstrating how one could integrate Paypal express checkout in Drupal, but...; in tech, things move(change) fast, mostly for better:
that blog was about PayPal api v1 - one reason being; the Paypal SDK library we were extending has been abandoned (deprecated) for a better one.

In this blog we will attempt to achieve the same and make things better. We will use smart payment buttons to initiate and authorize an order, and add the necessary logic in Drupal to process the authorized order (payment) details in the request object.