Interface PaymentNetwork.Builder

  • Method Details

    • chain

      The blockchain network for receiving payments. Production networks: BASE (Base mainnet), SOLANA (Solana mainnet). Test networks: BASE_SEPOLIA (Base Sepolia testnet), SOLANA_DEVNET (Solana Devnet).

      Parameters:
      chain - The blockchain network for receiving payments. Production networks: BASE (Base mainnet), SOLANA (Solana mainnet). Test networks: BASE_SEPOLIA (Base Sepolia testnet), SOLANA_DEVNET (Solana Devnet).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • chain

      The blockchain network for receiving payments. Production networks: BASE (Base mainnet), SOLANA (Solana mainnet). Test networks: BASE_SEPOLIA (Base Sepolia testnet), SOLANA_DEVNET (Solana Devnet).

      Parameters:
      chain - The blockchain network for receiving payments. Production networks: BASE (Base mainnet), SOLANA (Solana mainnet). Test networks: BASE_SEPOLIA (Base Sepolia testnet), SOLANA_DEVNET (Solana Devnet).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • walletAddress

      PaymentNetwork.Builder walletAddress(String walletAddress)

      Your wallet address on the specified blockchain where payments are sent. For EVM chains (Base, Base Sepolia), provide a valid Ethereum address (42 characters including 0x prefix). For Solana chains, provide a valid Base58-encoded public key (32-44 characters).

      For EVM addresses, WAF performs EIP-55 checksum validation for typo detection when the address uses a mix of lower and upper case letters. You can bypass this validation by providing the address in all lowercase or all uppercase.

      Parameters:
      walletAddress - Your wallet address on the specified blockchain where payments are sent. For EVM chains (Base, Base Sepolia), provide a valid Ethereum address (42 characters including 0x prefix). For Solana chains, provide a valid Base58-encoded public key (32-44 characters).

      For EVM addresses, WAF performs EIP-55 checksum validation for typo detection when the address uses a mix of lower and upper case letters. You can bypass this validation by providing the address in all lowercase or all uppercase.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prices

      The price configuration for this payment network. Currently supports a single price entry in USDC.

      Parameters:
      prices - The price configuration for this payment network. Currently supports a single price entry in USDC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prices

      PaymentNetwork.Builder prices(Price... prices)

      The price configuration for this payment network. Currently supports a single price entry in USDC.

      Parameters:
      prices - The price configuration for this payment network. Currently supports a single price entry in USDC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • prices

      The price configuration for this payment network. Currently supports a single price entry in USDC.

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

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

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