PayPal
The PayPal gateway uses the PayPal Subscriptions API v1 for recurring billing.Configuration
Environment variables
PAYPAL_MODE=sandbox for development and testing.
Webhooks
Registerhttps://yourapp.com/subscribd/webhook/paypal as a webhook endpoint in the PayPal Developer Dashboard. Enable:
BILLING.SUBSCRIPTION.ACTIVATEDBILLING.SUBSCRIPTION.UPDATEDBILLING.SUBSCRIPTION.CANCELLEDBILLING.SUBSCRIPTION.SUSPENDEDPAYMENT.SALE.COMPLETEDPAYMENT.SALE.DENIEDPAYMENT.SALE.REVERSED
PAYPAL_WEBHOOK_ID.
Limitations
interval_countmust be1. PayPal does not support billing cycles greater than one interval unit.- Trial extension is not supported natively.
ExtendTrialupdates the localtrial_ends_atonly. - Proration is handled by Subscribd’s built-in
ProrationEngine, not natively by PayPal.