block Payment Method With
suspend fun blockPaymentMethodWith(paymentMethodId: String): Pair<FrameObjects.PaymentMethod?, NetworkingError?>
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
payment Method Id
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
payment Method Id
The unique identifier of the payment method to block.
completion Handler
Called with the updated payment method on success, or a NetworkingError on failure.