For developers: one request to take a payment
Create a payment with a sandbox key, then confirm it in the browser with Stripe's Payment Element. IPS Gateway adds the platform fee and sends you a signed payment.succeeded event.
curl https://7c3e-41a9-b2d6.ngrok-free.app/api/v1/payments/intents \
-H "Authorization: Bearer ipsg_test_…" \
-H "Idempotency-Key: order-123" \
-H "Content-Type: application/json" \
-d '{ "amount": 1999, "currency": "usd" }'
# 201: returns the clientSecret for Stripe's Payment Element