update Payment Method With
suspend fun updatePaymentMethodWith(paymentMethodId: String, request: PaymentMethodRequests.UpdatePaymentMethodRequest): Pair<FrameObjects.PaymentMethod?, NetworkingError?>
Updates mutable fields on an existing payment method.
Return
A pair of the updated payment method and a networking error.
Parameters
payment Method Id
The unique identifier of the payment method to update.
request
The fields to update (expiration date and/or billing address).
fun updatePaymentMethodWith(paymentMethodId: String, request: PaymentMethodRequests.UpdatePaymentMethodRequest, completionHandler: (FrameObjects.PaymentMethod?, NetworkingError?) -> Unit)
Updates mutable fields on an existing payment method and delivers the result to a callback.
Parameters
payment Method Id
The unique identifier of the payment method to update.
request
The fields to update (expiration date and/or billing address).
completion Handler
Called with the updated payment method on success, or a NetworkingError on failure.