Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.35 KB

TokensApi.md

File metadata and controls

57 lines (36 loc) · 1.35 KB

TokensApi

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 classes:
//import io.conekta.TokensApi;

TokensApi apiInstance = new TokensApi();
Token token = new Token(); // Token | requested field for token
String acceptLanguage = es; // String | Use for knowing which language to use
try {
    TokenResponse result = apiInstance.createToken(token, acceptLanguage);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TokensApi#createToken");
    e.printStackTrace();
}

Parameters

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

Return type

TokenResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.conekta-v2.1.0+json