attachPaymentMethodWith

Attaches a payment method to a customer or merchant account.

Return

A pair of the updated payment method and a networking error.

Parameters

paymentMethodId

The unique identifier of the payment method to attach.

request

The customer and/or account to attach the payment method to.


Attaches a payment method to a customer or merchant account and delivers the result to a callback.

Parameters

paymentMethodId

The unique identifier of the payment method to attach.

request

The customer and/or account to attach the payment method to.

completionHandler

Called with the updated payment method on success, or a NetworkingError on failure.