Interface MonetizationConfig.Builder

  • Method Details

    • cryptoConfig

      MonetizationConfig.Builder cryptoConfig(CryptoConfig cryptoConfig)

      The cryptocurrency payment configuration, including the blockchain networks and wallet addresses where you receive payments.

      Parameters:
      cryptoConfig - The cryptocurrency payment configuration, including the blockchain networks and wallet addresses where you receive payments.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cryptoConfig

      default MonetizationConfig.Builder cryptoConfig(Consumer<CryptoConfig.Builder> cryptoConfig)

      The cryptocurrency payment configuration, including the blockchain networks and wallet addresses where you receive payments.

      This is a convenience method that creates an instance of the CryptoConfig.Builder avoiding the need to create one manually via CryptoConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to cryptoConfig(CryptoConfig).

      Parameters:
      cryptoConfig - a consumer that will call methods on CryptoConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currencyMode

      MonetizationConfig.Builder currencyMode(String currencyMode)

      Specifies whether the configuration uses real or test currency. Set to REAL to settle payments in USDC on production blockchain networks (Base, Solana). Set to TEST to settle on testnet networks (Base Sepolia, Solana Devnet) with tokens that have no monetary value. If not specified, defaults to REAL.

      Parameters:
      currencyMode - Specifies whether the configuration uses real or test currency. Set to REAL to settle payments in USDC on production blockchain networks (Base, Solana). Set to TEST to settle on testnet networks (Base Sepolia, Solana Devnet) with tokens that have no monetary value. If not specified, defaults to REAL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currencyMode

      MonetizationConfig.Builder currencyMode(CurrencyMode currencyMode)

      Specifies whether the configuration uses real or test currency. Set to REAL to settle payments in USDC on production blockchain networks (Base, Solana). Set to TEST to settle on testnet networks (Base Sepolia, Solana Devnet) with tokens that have no monetary value. If not specified, defaults to REAL.

      Parameters:
      currencyMode - Specifies whether the configuration uses real or test currency. Set to REAL to settle payments in USDC on production blockchain networks (Base, Solana). Set to TEST to settle on testnet networks (Base Sepolia, Solana Devnet) with tokens that have no monetary value. If not specified, defaults to REAL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: