Back to All

Creación de TOKEN con Flutter

Me sale este error cuando trato de crear un token

Future main() async{
var instance = Conekta();
instance.setBearerAuth("bearerAuth", "key_xxxxxx");
final api = instance.getTokensApi();

final Token token = Token(); // Token | requested field for token
final String acceptLanguage = 'es'; // String | Use for knowing which language to use

try {
final response = api.createToken(token:token, acceptLanguage:acceptLanguage);
print(response);
} catch (e) {
print('Exception when calling TokensApi->createToken: $e\n');
}
}