addCreditCard

fun addCreditCard(creditCard: CreditCard, customerId: String? = null, response: Response<CreditCard>? = null)(source)

Adds a new credit card.

Parameters

creditCard

The credit card to add.

customerId

The ID of the customer.

response

An optional response handler. success - receives the CreditCard error - receives error details