createSource method

Future<Map<String, dynamic>> createSource(
  1. Map<String, dynamic> data
)

Create a new Source object. https://stripe.com/docs/api/sources/create

Implementation

Future<Map<String, dynamic>> createSource(Map<String, dynamic> data) async {
  const path = '/sources';
  return _apiHandler.request(RequestMethod.post, path, publishableKey, apiVersion, params: data);
}