Checkout.hubuppayments.com

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

POST /api/v1/subscription_intents

app.post('/api/webhooks/hubup', (req, res) => const sig = req.headers['hubup-signature']; if (!verifyWebhookSignature(req.body, sig, process.env.HUBUP_WEBHOOK_SECRET)) return res.status(401).send('Invalid signature'); const event = req.body; switch(event.type) case 'payment_intent.succeeded': const paymentIntent = event.data; // Update order status to PAID in your DB // Fulfill product, grant access, send email break; case 'payment_intent.failed': // Log failure, notify customer, retry logic break; default: console.log( Unhandled event type: $event.type ); checkout.hubuppayments.com

// 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