- Custom or made-to-order items with extended production times
- Backorders with delayed inventory availability
- International shipments with longer fulfillment windows
- Pre-orders for unreleased products
- Fulfillment delays due to operational or external factors
- High-value orders requiring additional verification before shipping
Prerequisites
- Complete the quick start PayPal integration.
- An existing authorization ID that is past the initial honor period (3+ days old).
- A server environment capable of securely calling PayPal REST APIs.
Integrate server side
Add the following endpoint to your existing server file from the quick start integration.Test endpoint
Best practices
- Reauthorize within the valid window: Reauthorization is allowed only between days 4-29 after the original authorization, depending on region.
- Reauthorize only once: Each authorization can be reauthorized a single time. If more time is required, create a new order.
- Monitor authorization expiration: Track expiration dates and trigger reauthorization before the authorization lapses.
- Respect amount limits: You can reauthorize for up to 115% of the original amount in most regions. Regional limits may vary.
- Handle failures gracefully: If reauthorization fails, void the original authorization and request a new payment from the customer.
Important details
- Authorization validity periods: Authorizations are valid for 3 days in the US and up to 29 days in most other regions. After expiration, funds are automatically released to the customer.
- Reauthorization timing window: You can only reauthorize between days 4-29 after the initial authorization. Attempts before day 3 or after day 29 will fail.
- Single reauthorization limit: Each authorization can be reauthorized only once. If you need more time after reauthorization, void the authorization and create a new order.
- No customer interaction required: Reauthorization happens server-side without customer approval. However, consider notifying customers as a courtesy when extending payment holds.
- Handling reauthorization failures: If reauthorization fails, void the original authorization and request new payment from the customer. Common failures include insufficient funds, authorization already captured or voided, or attempting outside the valid window.
Test your integration
Run the following standard tests on your integration.| Test scenario | Setup | Expected result |
|---|---|---|
| Successful reauthorization | Create authorization, wait 4+ days, reauthorize for same amount | New authorization created with a fresh expiration date. |
| Reauthorize for higher amount | Reauthorize for 110% of original amount | New authorization created for increased amount. |
| Reauthorize too soon | Attempt within 3 days of original authorization | Error: reauthorization not available yet. |
| Reauthorize expired authorization | Attempt after 30+ days | Error: authorization expired and cannot be reauthorized. |
| Reauthorize more than once | Reauthorize successfully, then attempt again | Error: cannot reauthorize more than once. |
Go-live checklist
- Test reauthorization in sandbox using the time machine.
- Verify handling of amount limits (up to 115%).
- Test error handling for all reauthorization error cases.
- Implement authorization expiration monitoring.
- Switch to production API credentials.