Class MerchantIntent

    • Method Detail

      • getAccount

        public static Account getAccount​(Intent intent)
        Extract the Account from the given intent's extras Bundle.
        Parameters:
        intent - An intent.
        Returns:
        An Account, or null if the account extra is not present.
      • getVersion

        public static int getVersion​(Intent intent)
        Extract the version from the given intent's extras Bundle.
        Parameters:
        intent - An intent.
        Returns:
        An int, or 1 if the version extra is not present.
      • getMerchantId

        public static String getMerchantId​(Intent intent)
        Extract the merchant ID from the given intent's extras Bundle.
        Parameters:
        intent - An intent.
        Returns:
        As String, or null if the merchant ID extra is not present.