provider POST /v1/payment_methods/{payment_method}
@utdk/stripe /v1/payment_methods/{payment_method}
Update a PaymentMethod
<p>Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.</p>
payment_method path required
string

Try it

Authentication
Configure credentials for Stripe API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

postpaymentmethodspaymentmethod
POST/v1/payment_methods/{payment_method}
<p>Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.</p>

Parameters

required

Input

This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.

Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.

If this is a `card` PaymentMethod, this hash contains the user's card details.

Specifies which fields in the response should be expanded.

Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.

If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.

If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stripe from '@utdk/stripe';

await stripe.postpaymentmethodspaymentmethod()