Amadis

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Upon starting out a MOTO transaction, there will be one or more callback that requires additional user input depending on your config.

Below are the corresponding callbacks:

  • private byte[] manualEntrySelection()

  • private byte[] cvvEntry()

manualEntrySelection()

The first callback will ask the user for PAN Number and Expiration date.

cardNumber = “PAN number to be entered by user”.

expirationDate = “Expiration Date of the card to be entered by user”.

    private byte[] manualEntrySelection() {
        TlvTree tlvTree = TlvTree.Empty();
        tlvTree.AddAscii(ArkosManualEntryTags.cardNumber, cardNumber);
        tlvTree.AddAscii(ArkosManualEntryTags.expirationDate, expirationDate );
        return tlvTree.AsBytes();
    }

cvvEntry()

The Card Validation Digits is not necessary for a manual transaction. However, it can be configured if required and the following callback will be called to ask user for cvv input.

cvv = “cvv to be entered by user”.

    private byte[] manualEntrySelection() {
        TlvTree tlvTree = TlvTree.Empty();
        tlvTree.AddAscii(ArkosManualEntryTags.cvv, cvv);
        return tlvTree.AsBytes();
    }

  • No labels