Thanks for Dropping by!

This library includes three examples: Simple Purchase, Simple Subscription and Subscription with Separate Checkout page.

Simple Purchase

This example demonstrates how to use the library to accept a simple Digital Goods payment.

Try the Simple Purchase Example »

Simple Subscription

Create a recurring payment by following the code for this example.

Try the Simple Subscription Example »

Subscription with Separate Checkout

Using the library, you can also use a separate checkout page in the payment flow. Doing so greatly reduces the page load of your payment/sign-up page by requesting a checkout token from PayPal only after a visitor has committed to payment.

The code for this example demonstrates how to use a separate checkout page for a subscription sign-up.

Try the Separate Checkout Example »