Class WalletTransactionData.Builder

java.lang.Object
com.gemalto.mfs.mwsdk.payment.engine.WalletTransactionData.Builder
Enclosing class:
WalletTransactionData

public static class WalletTransactionData.Builder extends Object
Builder for creating instances of WalletTransactionData.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withWalletProprietaryData

      public WalletTransactionData.Builder withWalletProprietaryData(@Nullable byte[] walletProprietaryData)
      Sets the wallet proprietary data for the card.

      This method is supported only for the Mastercard scheme MCBP 2.x and above. When set, the GenAC command during transaction will include this data in the Issuer Application Data (IAD) tag, starting from index 18.

      Parameters:
      walletProprietaryData - the wallet proprietary data to set; must be a maximum of 14 bytes
      Returns:
      this builder instance
    • build

      public WalletTransactionData build()
      Builds a new WalletTransactionData instance using the configured values.
      Returns:
      a new WalletTransactionData object