detachPaymentMethod method
Detach a PaymentMethod. https://stripe.com/docs/api/payment_methods/detach
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);
}