Create a PaymentIntent to begin the payment flow. Use Idempotency-Key header to make this request idempotent.
Use your secret API key. Example: Authorization: Bearer sk_test_xxx
API version header. Use '2026-01-01' for the latest version.
Idempotency key for safely retrying POST requests.
Optional client-provided request id for tracing.
Payment intent created
Represents an intent to collect payment from a customer. Use confirm to finalize.
"pi_1Hh1X2AbCdEf"
Amount in smallest currency unit
1500
"BDT"
requires_payment_method, requires_confirmation, processing, succeeded, requires_action, canceled "requires_payment_method"
Client-side secret used by frontends
"cs_test_abc"
"payment_intent"
automatic, manual "automatic"
"cus_123"
"pm_card_abc"