blockPaymentMethodWith

Blocks a payment method, preventing it from being used for new transactions.

Return

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

Parameters

paymentMethodId

The unique identifier of the payment method to block.


fun blockPaymentMethodWith(paymentMethodId: String, completionHandler: (FrameObjects.PaymentMethod?, NetworkingError?) -> Unit)

Blocks a payment method and delivers the result to a callback.

Parameters

paymentMethodId

The unique identifier of the payment method to block.

completionHandler

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