Confirm the intent to finalize payment. This will attempt authorization/capture depending on capture_method. Use Idempotency-Key to protect retries.
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.
Confirmed PaymentIntent
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"