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:Documentation Index
Fetch the complete documentation index at: https://docs.paypal.ai/llms.txt
Use this file to discover all available pages before exploring further.
- server-side integration using the Orders v2 API
- client-side integration using the PayPal JavaScript SDK v6
Common use cases
Choose the features that match your business model. You can implement all of these programmatically.Retail and ecommerce
- Refund a payment - Handle returns and cancellations.
- Split shipments - Ship items to multiple addresses.
Services and hospitality
- Delay capture: Charge after service delivery.
- Void an authorization: Cancel holds before charging.
- Buy online, pick up in store: Verify pickup before capturing.
Recurring payments and extended fulfillment
- Recurring payments: Save and reuse stored payment methods.
- Reauthorize an authorization: Extend payment holds beyond 3 days.
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 |