updatePaymentMethod

fun updatePaymentMethod(paymentMethodId: String, paymentMethodUpdateParams: PaymentMethodUpdateParams, ephemeralKeySecret: String, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId, callback: ApiResultCallback<PaymentMethod>)

Update a PaymentMethod asynchronously.

See Update a PaymentMethod. POST /v1/payment_methods/:id

Parameters

paymentMethodId

the ID of the PaymentMethod to be updated

paymentMethodUpdateParams
ephemeralKeySecret

the Customer Ephemeral Key secret to be used

idempotencyKey

optional, see Idempotent Requests

stripeAccountId

Optional, the Connect account to associate with this request. By default, will use the Connect account that was used to instantiate the Stripe object, if specified.

callback

a ApiResultCallback to receive the result or error