Attach a payment method to a payment intent

Attaches a payment method, which starts the authorization and returns the payer's next_action. Served by core-api or payments-api depending on the organization's rollout, which may enable payments-api per the attached method's type, in the same response shape either way. A request carrying payment_method_options is served by either; payments-api accepts the field without acting on it. A saved (vaulted) method attached to an intent created with setup_future_usage must be saved to that intent's customer_id, checked against customer-api; otherwise the attach answers parameter_invalid on payment_method. Without setup_future_usage, a saved method need only belong to the same organization. On payments-api, a method saved off_session, a subscription's card, is attached only with a secret key: with a public key the attach answers payment_method_not_allowed on payment_method.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Payment intent ID

Body Params

Payment method to attach

data
object
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json