Interface CryptoConfig.Builder

  • Method Details

    • paymentNetworks

      CryptoConfig.Builder paymentNetworks(Collection<PaymentNetwork> paymentNetworks)

      The blockchain payment networks configured to receive payments. You can specify 1 to 2 networks. All networks must be in the same environment-either all production networks (Base, Solana) or all test networks (Base Sepolia, Solana Devnet).

      Parameters:
      paymentNetworks - The blockchain payment networks configured to receive payments. You can specify 1 to 2 networks. All networks must be in the same environment-either all production networks (Base, Solana) or all test networks (Base Sepolia, Solana Devnet).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentNetworks

      CryptoConfig.Builder paymentNetworks(PaymentNetwork... paymentNetworks)

      The blockchain payment networks configured to receive payments. You can specify 1 to 2 networks. All networks must be in the same environment-either all production networks (Base, Solana) or all test networks (Base Sepolia, Solana Devnet).

      Parameters:
      paymentNetworks - The blockchain payment networks configured to receive payments. You can specify 1 to 2 networks. All networks must be in the same environment-either all production networks (Base, Solana) or all test networks (Base Sepolia, Solana Devnet).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentNetworks

      CryptoConfig.Builder paymentNetworks(Consumer<PaymentNetwork.Builder>... paymentNetworks)

      The blockchain payment networks configured to receive payments. You can specify 1 to 2 networks. All networks must be in the same environment-either all production networks (Base, Solana) or all test networks (Base Sepolia, Solana Devnet).

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to paymentNetworks(List<PaymentNetwork>).

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