detachPaymentMethod method

Future<Map> detachPaymentMethod(
  1. String paymentMethodId
)

Detach a payment method and refresh the store if there are any active listeners.

Implementation

Future<Map> detachPaymentMethod(String paymentMethodId) async {
  final paymentMethodFuture = await _customerSession.detachPaymentMethod(paymentMethodId);
  await refresh();
  return paymentMethodFuture;
}