attach Payment Method With
suspend fun attachPaymentMethodWith(paymentMethodId: String, request: PaymentMethodRequests.AttachPaymentMethodRequest): Pair<FrameObjects.PaymentMethod?, NetworkingError?>
Attaches a payment method to a customer or merchant account.
Return
A pair of the updated payment method and a networking error.
Parameters
payment Method Id
The unique identifier of the payment method to attach.
request
The customer and/or account to attach the payment method to.
fun attachPaymentMethodWith(paymentMethodId: String, request: PaymentMethodRequests.AttachPaymentMethodRequest, completionHandler: (FrameObjects.PaymentMethod?, NetworkingError?) -> Unit)
Attaches a payment method to a customer or merchant account and delivers the result to a callback.
Parameters
payment Method Id
The unique identifier of the payment method to attach.
request
The customer and/or account to attach the payment method to.
completion Handler
Called with the updated payment method on success, or a NetworkingError on failure.