Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.54 KB

TokensApi.md

File metadata and controls

59 lines (39 loc) · 1.54 KB

conekta.api.TokensApi

Load the API package

import 'package:conekta/api.dart';

All URIs are relative to https://api.conekta.io

Method HTTP request Description
createToken POST /tokens Create Token

createToken

TokenResponse createToken(token, acceptLanguage)

Create Token

Generate a payment token, to associate it with a card

Example

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');
}

Parameters

Name Type Description Notes
token Token requested field for token
acceptLanguage String Use for knowing which language to use [optional] [default to 'es']

Return type

TokenResponse

Authorization

bearerAuth

HTTP request headers

  • 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]