This example demonstrates how to use the library to accept a simple Digital Goods payment.
Create a recurring payment by following the code for this example.
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.