addCustomerSource method
Implementation
Future<Source> addCustomerSource(
String customerId, String sourceId, String secret) async {
final String url = "$LIVE_API_PATH/customers/$customerId/sources";
final options = RequestOptions(publishableApiKey: secret);
final response = await _getStripeResponse(
RequestMethod.post,
url,
options,
params: {FIELD_SOURCE: sourceId},
);
final source = Source.fromJson(response);
return source;
}