Accept PayPal payments on your website. Customers can select the PayPal button on your site and pay with any funding source linked to their PayPal account.
Use the quickstart integration to get a localhost demo up and running. The quickstart includes sample code for:
After completing the quickstart, extend your PayPal integration with additional features such as order management, authorization handling, and specialized payment flows. Choose the features that match your business needs.
Add server-side endpoints to handle refunds, voids, delayed captures, and specialized checkout flows. Each feature builds on the quickstart integration.
Common use cases
Choose the features that match your business model. You can implement all of these programmatically.
Merchants can also add tracking, mark shipments, and issue refunds directly in the PayPal business dashboard.
Retail and ecommerce
Services and hospitality
Recurring payments and extended fulfillment
Authorization vs. capture
Authorization holds funds on the buyer’s payment method to confirm they can pay, but doesn’t transfer money.
Capture moves the funds from the buyer to the merchant account. There are two capture flows:
- Immediate capture: Authorization and capture occur in one step.
- Authorize then capture: Authorization occurs first, then capture occurs later when the merchant is ready to fulfill the order.
| Flow | When to use | Features available |
|---|
| Immediate capture | Ship within 3 days | Refunds, shipping and tax, split shipments |
| Authorize then capture | Ship after 3+ days or require order verification | Void, delayed capture, reauthorization, buy online pick up in store |
Next steps
Complete the quickstart PayPal integration, then add features to match your business needs.