Type alias TransactionSetupType

TransactionSetupType: { amountInCents: String; capture: Boolean; dialogMessage?: String; dialogTitle?: String; entryMode?: "MAGNETIC_STRIPE" | "CHIP_N_PIN" | "CONTACTLESS" | "CONTACTLESS_MAG" | "QRCODE" | "UNKNOWN"; initiatorTransactionKey?: String; installmentCount?: Number; installmentHasInterest?: Boolean; pinpadMacAddress?: String; shortName?: String; stoneCode?: String; subMerchantAddress?: String; subMerchantCategoryCode?: String; subMerchantCity?: String; subMerchantPostalAddress?: String; subMerchantRegisteredIdentifier?: String; subMerchantTaxIdentificationNumber?: String; typeOfTransaction: "DEBIT" | "CREDIT" | "VOUCHER" | "INSTANT_PAYMENT" | "PIX"; useDefaultUI?: Boolean }

Since

0.1.7

Type declaration

  • amountInCents: String

    Stone requests the amount to be in cents, so, R$ 1,00 will be 100 here.

  • capture: Boolean

    If you set this to false you need to call captureTransaction later.

  • Optional dialogMessage?: String

    Default UI dialog main message.

  • Optional dialogTitle?: String

    Default UI dialog title.

  • Optional entryMode?: "MAGNETIC_STRIPE" | "CHIP_N_PIN" | "CONTACTLESS" | "CONTACTLESS_MAG" | "QRCODE" | "UNKNOWN"
  • Optional initiatorTransactionKey?: String

    Use this if you are running multiple transactions.

  • Optional installmentCount?: Number

    Send anything greater than 1 here to make an installment transaction.

  • Optional installmentHasInterest?: Boolean

    If this is a Parcelado pelo comprador, or Parcelado pelo comerciante. (Default to false, which means Parcelado pelo comerciante)

  • Optional pinpadMacAddress?: String

    Bluetooth PinPad Mac Address when you not running in POS mode. Leave this empty to use the first pinpad in the list.

  • Optional shortName?: String

    Usually used by Sub-Acquirer Apps. (This will appear in the statement descriptor)

  • Optional stoneCode?: String

    When you have more than one stoneCode activated use this to select which one to use.

  • Optional subMerchantAddress?: String

    Used by Sub-Acquirer Apps.

  • Optional subMerchantCategoryCode?: String

    Used by Sub-Acquirer Apps. (Also know as MCC)

  • Optional subMerchantCity?: String

    Used by Sub-Acquirer Apps.

  • Optional subMerchantPostalAddress?: String

    Used by Sub-Acquirer Apps.

  • Optional subMerchantRegisteredIdentifier?: String

    Used by Sub-Acquirer Apps. (Also know as your internal Merchant ID)

  • Optional subMerchantTaxIdentificationNumber?: String

    Used by Sub-Acquirer Apps. (Also know as CPF/CNPJ)

  • typeOfTransaction: "DEBIT" | "CREDIT" | "VOUCHER" | "INSTANT_PAYMENT" | "PIX"

    INSTANT_PAYMENT is here, but at least as of version 4.1.1 it is not yet implemented in StoneSDK, they ask you to use the Intents Integration if you want to use Instant Payments.

  • Optional useDefaultUI?: Boolean

    Wheter to use Stone's default progress dialog or not.