Skip to main content

Endpoint

:id is the payment intent ID.

Authentication

Use your secret key in the Authorization header:

Request Body

payment_method_data structure

Example Request

Response

200 OK - Payment Succeeded

200 OK - Payment Failed

When the payment fails (e.g., timeout, insufficient balance), the response will still return a 200 status code but with a failed status:

422 Bad Request

404 Not Found

401 Unauthorized

Error handling is important, as confirmation can fail for various reasons (insufficient funds, incorrect payment information, etc.).