retrieveCustomer method

Future<Customer> retrieveCustomer(
  1. String customerId,
  2. String secret
)

Implementation

Future<Customer> retrieveCustomer(String customerId, String secret) async {
  final String url = "$LIVE_API_PATH/customers/$customerId";
  final options = RequestOptions(publishableApiKey: secret);
  final response = await _getStripeResponse(RequestMethod.get, url, options);
  final customer = Customer.fromJson(response);
  return customer;
}