PayPal PHP Class Library Demo / Sample Code

This is a collection of small demo apps for a variety of PayPal checkout flows using our class library.

View PayPal Library on GitHub

Sample Code Info
The sample code provided by the download buttons is pulled straight from this site. All paths to CSS, JS, etc. are setup relative to the site root, so if you are setting up a demo on your own server it is best to use a virtual host so that you can drop the demo files into the site root of your test server. We offer training for this sort of thing if you are unsure how to handle this.

PayPal Express Checkout Basic Integration

Express Checkout

Basic

Here we are integrating Express Checkout without any line item details or any extra features. We obtain the user's shipping information so that we can calculate shipping and tax, but otherwise no additional data is included with this checkout demo.

Demo Download Sample Code

PayPal Express Checkout Line Items Integration

Express Checkout

w/ Line Items

Here we expand on our basic Express Checkout demo to add individual order items to the API requests so that the data is available within PayPal's checkout review pages transaction details.

Demo Download Sample Code

PayPal Express Checkout Digital Goods Integration

Express Checkout

Digital Goods

Learn how to implement digital goods (micro-processing rates) into PayPal Express Checkout. This includes the option for embedded payments.

Demo Download Sample Code

Express Checkout Billing Agreement

Express Checkout Billing Agreement

Billing Agreement

Learn how to implement Billing Agreement into PayPal Express Checkout. This includes the option for embedded payments.

Demo Download Sample Code

Express Checkout Parallel Payments

Express Checkout Parallel Payments

Parallel Payments

Learn how to implement Parallel Payments into PayPal Express Checkout. This includes the option for embedded payments.

Demo Download Sample Code

Express checkout 3rd Party No Permissions

Express checkout 3rd Party No Permissions

3rd Party No Permissions

Learn how to implement 3rd Party No Permissions into PayPal Express Checkout. This includes the option for embedded payments.

Demo Download Sample Code

Website Payments Pro 30 Basic

Website Payments Pro 30 Basic

Website Payments Pro 30 Basic

Learn how to implement Website Payments Pro 30 Basic. This includes the option for embedded payments.

Demo Download Sample Code

Express Checkout In-Context

Express Checkout In-Context

Express Checkout In-Context

Learn how to implement Express Checkout In-Context. This includes the option for embedded payments.

Demo Download Sample Code

Express Checkout Recurring Payment

Express Checkout

Recurring Payments

Learn how to implement Express Checkout - Recurring Payments. This includes the option for embedded payments.

Demo Download Sample Code