Integrate our products into your software. Let's make payment happen together!
Look at all the possibilitiesThe function CardDetection is used as a kind of Early Card Detect, and the CardDetectionResponse can contain data (TrackingToken) to recognize a card (or cardholder) in an anonymous way.
A TrackingToken is a secure representation of a PAN used for Customer recognition and tracking. Examples are:
Tracking tokens have a length of 18 characters and always starts with ‘99’ to indicate the full PAN was used during calculation of the token.
The following code snippet demonstrates how you can start a Tracking token request.
TokenApi tokenService = new TokenService(); ExternalTerminal terminal = createExternalTerminal(); TokenDelegate tokenDelegate = new TokenDelegate() { ... }; tokenService.token(terminal, TokenPurpose.TRACKING, tokenDelegate);
The following code snippet demonstrates how you can do a Normal Abort
boolean isSilent = false; TokenApi tokenService = new TokenService(); ExternalTerminal terminal = createExternalTerminal(); TokenDelegate tokenDelegate = new TokenDelegate() { ... }; tokenService.abort(isSilent, terminal, tokenDelegate);
The following code snippet demonstrates how you can do a Normal Abort on a new connection
boolean isSilent = false; TokenApi tokenService = new TokenService(); ExternalTerminal terminal = createExternalTerminal(); TokenDelegate tokenDelegate = new TokenDelegate() { ... }; tokenService.abortOnNewConnection(isSilent, terminal, tokenDelegate);
The following code snippet demonstrates how you can do a Silent Abort.
boolean isSilent = true; TokenApi tokenService = new TokenService(); ExternalTerminal terminal = createExternalTerminal(); TokenDelegate tokenDelegate = new TokenDelegate() { ... }; tokenService.abort(isSilent, terminal, tokenDelegate);
The following code snippet demonstrates how you can do a Silent Abort on a new connection.
boolean isSilent = true; TokenApi tokenService = new TokenService(); ExternalTerminal terminal = createExternalTerminal(); TokenDelegate tokenDelegate = new TokenDelegate() { ... }; tokenService.abortOnNewConnection(isSilent, terminal, tokenDelegate);
The following code snippet demonstrates how you can get a Mifare UID via CardDetection
TokenApi tokenService = new TokenService(); ExternalTerminal terminal = createExternalTerminal(); terminal.supportMifareCards(true); TokenDelegate tokenDelegate = new TokenDelegate() { ... @Override public void cardUID(String cardUID) { ... } ... }; tokenService.token(terminal, TokenPurpose.TRACKING, tokenDelegate);