detachPaymentMethod method

Future<Map<String, dynamic>> detachPaymentMethod(
  1. String? paymentMethodId
)

Implementation

Future<Map<String, dynamic>> detachPaymentMethod(String? paymentMethodId) async {
  assert(_assertNotDisposed());
  final EphemeralKey key = await (_keyManager.retrieveEphemeralKey());
  final path = '/payment_methods/$paymentMethodId/detach';
  return _apiHandler.request(RequestMethod.post, path, key.secret, apiVersion);
}