Update a SetupIntent
POST
/v1/setup_intents/{id}请求参数
ID of the Customer this SetupIntent belongs to, if one exists. If present, the SetupIntent’s payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
An arbitrary string attached to the object. Often useful for displaying to users.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
ID of the payment method used with this SetupIntent.
The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.
Payment-method-specific configuration for this SetupIntent.
When included, this hash creates a PaymentMethod that is set as the payment_method value in the SetupIntent.
{
"customer": "string",
"description": "string",
"metadata": {},
"payment_method": "string",
"payment_method_types": [
"string"
],
"payment_method_options": {
"card": {
"request_three_d_secure": "string"
}
},
"payment_method_data": {}
}
示例代码
Responses
{}