addPaymentMethod

abstract suspend fun addPaymentMethod(customerId: String, paymentMethodType: AddPaymentMethodType, idempotencyKey: IdempotencyKey? = null): ApiResult<PaymentMethod>

Adds a payment method of AddPaymentMethodType to a Customer

Return

The resulting newly added PaymentMethod

Parameters

customerId

Unique identifier for the customer.

paymentMethodType

The type of payment method to be added

idempotencyKey

Optional idempotency key. For more details see Idempotency