You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Andreas Borglin edited this page Nov 27, 2018
·
1 revision
Request that a token is generated. The source of the token and method used to generate it is typically application specific. For the most case the source of the token is a payment card.
If you require additional data for your use case / scenario, please contact AEVI to discuss.
RequesttokenisationRequest = newRequest("tokenisation");
// If the request has an amount associated with ittokenisationRequest.addAdditionalData("amount", newAmount(amountValue, currency));
Create Response
// If your app requires an amount to process the request,AmounttokenisationAmount = tokenisationRequest.getRequestData().getValue("amount", Amount.class)
...
ResponsetokenisationResponse = newResponse(tokenisationRequest, <outcome>, "Outcome message");
// If a token was successfully generatedTokentoken = newToken(tokenValue, tokenSource);
tokenisationResponse.addAdditionalData("token", token);