Confirm a PaymentIntent
POST
/v1/payment_intents/{id}/confirm请求参数
Path Params
id
string
required
Body Params application/json
payment_method_data
object
optional
off_session
string
optional
Set to true to indicate that the customer is not in your checkout flow during this payment attempt, and therefore is unable to authenticate. This parameter is intended for scenarios where you collect card details and charge them later.
error_on_requires_action
string
optional
Set to true to fail the payment attempt if the PaymentIntent transitions into requires_action. This parameter is intended for simpler integrations that do not handle customer actions, like saving cards without authentication.
Example
{
"payment_method_data": {},
"off_session": "string",
"error_on_requires_action": "string"
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 9 个月前