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

RoutePurpose
POST /api/payments/paypal/create-orderValidate plan, create order, and persist the checkout session.
POST /api/payments/paypal/capture-orderCapture an approved order and mark it for manual activation.
POST /api/webhooks/paypalVerify PayPal webhook signatures and update payment state.

Current billing limitation

One-time payment

Recurring PayPal subscriptions are not enabled. A successful capture requires manual service activation and renewal handling.

These docs describe implementation readiness and configuration. They are not a certification, penetration test, contractual SLA, or financial advice claim.