Interface TSHProxy


  • public interface TSHProxy
    TSHProxy is an interface which declares the list of APIs required from TSH server, used by Issuer App.
    Since:
    1.0
    Version:
    1.1
    • Method Detail

      • getAsset

        void getAsset​(String assetId,
                      TPCSDKListener<MediaData[]> listener)
        TSH server request to fetch the token requestor logo or image. Returns Base64 encoded image data if found in TSH server. Use getAsset Api only when the provided scheme is MASTERCARD by passing the logoId param. For VISA scheme, the application needs fetch the logo directly using URL.
        Parameters:
        assetId - Asset unique identifier is mandatory.
        listener - TPCSDKListener callback to pass result to caller.
      • getTokenList

        void getTokenList​(CardInfo cardInfo,
                          TPCSDKListener<Token[]> listener)
        This request is used to retrieve list of tokens for a given funding card and token requestor information which gives an overview to user about where cards are digitized like state of the token, the logo, name and type of the token requestor. Note: The list of token provides Token.isOnCurrentDevice() to identify the tokens on the current device which is configured with GooglePay or SamsungPay.
        Parameters:
        cardInfo - CardInfo card info for which token list requested. Issuer application should pass cardInfo object with following mandatory fields scheme and encryptedPayload required for this request.
        listener - TPCSDKListener callback is used to return the token array result.
      • getPayload

        void getPayload​(String authCode,
                        String kyc,
                        String cardId,
                        TPCSDKListener<String> listener)
        This TSH server request returns encrypted card payload which is required for push provisioning. The application calls this Api to retrieve encrypted payload before calling the push tokenize Api for a given card.
        Parameters:
        authCode - Auth code provided by issuer is mandatory field.
        kyc - Information provided to identify the user is mandatory field.
        cardId - Unique id of the card allocated by issuer is mandatory.
        listener - TPCSDKListener Mandatory callback used return the payload.
      • getCardArt

        void getCardArt​(String cardId,
                        String kyc,
                        String size,
                        TPCSDKListener<MediaData> listener)
        This Api requests the TSH server to get card art or image for a given funding card. The image is Base64-encoded data. The issuer application can call this Api to get the card image associated with given cardId and display in application UI.
        Parameters:
        cardId - Mandatory Unique id of the card allocated by issuer.
        kyc - Mandatory Information provided to identify the user.
        size - Mandatory requested image size, ex : S, M, L.
        listener - TPCSDKListener Mandatory callback to return the MediaData.
      • getCardList

        void getCardList​(String authorizationCode,
                         String kyc,
                         String stock,
                         DeviceInfo deviceInfo,
                         TPCSDKListener<Card[]> listener)
        TSH server request is used to retrieve the list of cards for given user. The issuer application can call this Api to display the list of cards available for the current user.
        Parameters:
        authorizationCode - Authorization code provided by issuer is mandatory param.
        kyc - Information provided to identify the user is mandatory param.
        stock - Additional information provided to identify the user.
        deviceInfo - DeviceInfo Device information is mandatory param.
        listener - TPCSDKListener Mandatory listener used to send the results to caller.
      • updateTokenState

        void updateTokenState​(String tokenId,
                              String tokenRequestorId,
                              String scheme,
                              String authorizationCode,
                              TokenAction action,
                              TPCSDKListener<Boolean> listener)
        Request to update or change the token Status. This Api can be used to perform one of the following actions for a given tokenId like
      • Activate the token
      • Suspend the token
      • Delete the token
Parameters:
authorizationCode - Authorization code provided by issuer.
scheme - Enumeration of primary card scheme. Allowed values: VISA, MASTERCARD, PAGOBANCOMAT and AMEX.
tokenRequestorId - Unique identifier of the token requestor allocated by the TSP Scheme. It shall be provided for VISA scheme.
action - This param is mandatory and indicates operation to be performed like SUSPEND/RESUME/DELETE a token.
tokenId - The unique identifier of the token allocated by TSP scheme.
listener - TPCSDKListener Mandatory callback used to send the results to caller.