makeCreditCardDefault

fun makeCreditCardDefault(creditCard: CreditCard, customerId: String? = AuthManager.customerId, response: Response<Any?>? = null)(source)

Makes a credit card the default payment method

Parameters

creditCard

The credit card to make default.

customerId

The ID of the customer. Optional. Defaults to value provided to MobilePayments.setCustomerId() or any UI widget

response

An optional response handler. success - receives a null value for the response error - receives error details