import 'package:conekta/api.dart';
All URIs are relative to https://api.conekta.io
Method | HTTP request | Description |
---|---|---|
createToken | POST /tokens | Create Token |
TokenResponse createToken(token, acceptLanguage)
Create Token
Generate a payment token, to associate it with a card
import 'package:conekta/api.dart';
final api = Conekta().getTokensApi();
final 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, acceptLanguage);
print(response);
} catch on DioException (e) {
print('Exception when calling TokensApi->createToken: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
token | Token | requested field for token | |
acceptLanguage | String | Use for knowing which language to use | [optional] [default to 'es'] |
- Content-Type: application/json
- Accept: application/vnd.conekta-v2.1.0+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]