createPaymentMethod

fun createPaymentMethod(paymentMethodCreateParams: PaymentMethodCreateParams, idempotencyKey: String? = null, stripeAccountId: String? = this.stripeAccountId, callback: ApiResultCallback<PaymentMethod>)

Create a PaymentMethod asynchronously.

See Create a PaymentMethod. POST /v1/payment_methods

Parameters

paymentMethodCreateParams
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