Class GoogleProvisioningResult


  • public final class GoogleProvisioningResult
    extends Object
    Result of a Google Pay Universal Push Provisioning operation.

    The raw Google card-saved status is supplied for troubleshooting and UI handling. Tokenization outcome is represented by the listener success or error callback.

    • Constructor Detail

      • GoogleProvisioningResult

        public GoogleProvisioningResult​(String tokenID,
                                        int googleCardSavedStatusCode,
                                        boolean isCardSavedToGoogle)
        Creates a result for a Google Pay Universal Push Provisioning operation.
        Parameters:
        tokenID - identifier of the provisioned token returned by Google Pay; may be null when a token identifier is not available
        googleCardSavedStatusCode - raw card-saved status code returned by Google Pay
        isCardSavedToGoogle - whether Google Pay reports that the card was saved
    • Method Detail

      • getTokenID

        public String getTokenID()
        Returns the identifier of the provisioned token.
        Returns:
        the Google Pay token identifier, or null when it is not available
      • getGoogleCardSavedStatusCode

        public int getGoogleCardSavedStatusCode()
        Returns the raw card-saved status code reported by Google Pay.
        Returns:
        the Google Pay card-saved status code
      • isCardSavedToGoogle

        public boolean isCardSavedToGoogle()
        Indicates whether Google Pay reports that the card was saved.
        Returns:
        true if the card was saved to Google Pay; false otherwise