createToken method

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

Create a stripe Token https://stripe.com/docs/api/tokens

Implementation

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