retrieveCurrentCustomer method

Future<Map<String, dynamic>> retrieveCurrentCustomer()

Retrieves the details for the current customer. https://stripe.com/docs/api/customers/retrieve

Implementation

Future<Map<String, dynamic>> retrieveCurrentCustomer() async {
  assert(_assertNotDisposed());
  final EphemeralKey key = await (_keyManager.retrieveEphemeralKey());
  final path = '/customers/${key.customerId}';
  return _apiHandler.request(RequestMethod.get, path, key.secret, apiVersion);
}