AgentFlow Enterprise Docs
PayPal Orders and Webhooks
The server validates the plan price, creates the order, captures an approved payment, verifies webhook signatures, and records payment state in Supabase.
Implemented routes
| Route | Purpose |
|---|---|
POST /api/paypal/subscriptions/create | Validate the plan, create a PayPal subscription, and persist the local checkout reference. |
POST /api/paypal/subscriptions/confirm | Verify the returned subscription with PayPal and synchronize active access. |
POST /api/webhooks/paypal | Verify PayPal webhook signatures and update payment state. |
Current billing limitation
One-time payment
Recurring PayPal subscriptions require configured server-side plan IDs. Active status is synchronized through verified webhooks and a server-side return confirmation.
These docs describe implementation readiness and configuration. They are not a certification, penetration test, contractual SLA, or financial advice claim.