// Client-side check – not for security const urlParams = new URLSearchParams(window.location.search); const paymentIntent = urlParams.get('payment_intent'); if(paymentIntent) showConfirmation(); HubUp sends payment_intent.succeeded , payment_intent.failed , subscription.created , etc.
"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 // Client-side check – not for security const