Generating a JSON Web Token

To generate a JSON Web Token (JWT) for manual card entry:

1

Add an object to implement the ManualEntry interface.

2

Add the HasManualTokenizingSupport interface.

The HasManualTokenizingSupport interface includes following methods:

//Returns a successful JSON Web Token.
void successfulTransactionToken(TransactionToken transactionToken);
//Handle errors related to the card.
void handleCardProcessingResponse(CardProcessingResponse cardProcessingResponse);
//Handle errors related to the manual entry request.
void handleManualEntryError(String message);
3

Add the ManualCardTokenizer object.

manualCardTokenizer = new ManualCardTokenizerImpl(this);
4

Add the createTransactionToken method call and include your card object.

manualCardTokenizer.createTransactionToken(manualEntry);

Last updated

Was this helpful?