Interface PaymentNetwork.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PaymentNetwork.Builder,,PaymentNetwork> SdkBuilder<PaymentNetwork.Builder,,PaymentNetwork> SdkPojo
- Enclosing class:
PaymentNetwork
-
Method Summary
Modifier and TypeMethodDescriptionThe blockchain network for receiving payments.chain(BlockchainChain chain) The blockchain network for receiving payments.prices(Collection<Price> prices) The price configuration for this payment network.prices(Consumer<Price.Builder>... prices) The price configuration for this payment network.The price configuration for this payment network.walletAddress(String walletAddress) Your wallet address on the specified blockchain where payments are sent.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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
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 thePrice.Builderavoiding the need to create one manually viaPrice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprices(List<Price>).- Parameters:
prices- a consumer that will call methods onPrice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-