((free)) — Checkout.hubuppayments.com

((free)) — Checkout.hubuppayments.com

"plan_id": "plan_monthly_10", "customer_email": "user@example.com", "trial_days": 14, "success_url": "https://yoursite.com/subscribe/success", "cancel_url": "https://yoursite.com/subscribe/cancel"

"id": "pi_abc123", "checkout_url": "https://checkout.hubuppayments.com/checkout/pi_abc123", "status": "requires_payment_method" checkout.hubuppayments.com

Authorization: Bearer secret_key Content-Type: application/json "description": "Premium Plan - Annual"

POST /api/v1/subscription_intents

"amount": 2999, "currency": "USD", "description": "Premium Plan - Annual", "customer_email": "buyer@example.com", "metadata": "order_id": "ORD-1234", "user_id": "78901" , "success_url": "https://yoursite.com/success?session_id=CHECKOUT_SESSION_ID", "cancel_url": "https://yoursite.com/cancel", "expires_in_minutes": 30 "metadata": "order_id": "ORD-1234"

res.json( received: true ); ); Create a subscription intent: