Key Features
- Physical Product Purchases: Buy products from Amazon and Shopify
- Solana USDC Payments: Pay with USDC on Solana blockchain
- Order Management: Create, track, and confirm orders
- Shipping Integration: Handle physical addresses and delivery
- Real-time Status: Monitor order progress and payment status
Basic Usage
Create an Amazon Order
Confirm Order Status
Parameters
Checkout Parameters
Confirm Order Parameters
Example Prompts
Natural Language Prompts
LangChain Tool Prompts
Create Order
Confirm Order
Implementation Details
Order Creation Flow
Order Status Polling
Payment Methods
Supported Currencies
- USDC: Primary payment method on Solana
- SOL: Alternative payment option
Payment Flow
- Quote Generation: Get pricing in USDC
- Transaction Creation: Generate Solana transaction
- Transaction Signing: Sign with user wallet
- Payment Execution: Submit to Solana network
- Order Confirmation: Verify payment completion
Shipping Configuration
Supported Regions
- United States: Full support with state validation
- International: Limited support (check with Crossmint)
Address Validation
Error Handling
Best Practices
-
API Key Management
- Store API key securely in agent config
- Use environment variables for production
- Never expose API keys in client-side code
-
Address Validation
- Validate shipping addresses before submission
- Include all required fields
- Use standardized country codes
-
Order Tracking
- Store order IDs for future reference
- Implement polling for order confirmation
- Handle timeout scenarios gracefully
-
Payment Management
- Verify USDC balance before ordering
- Handle transaction failures appropriately
- Monitor payment status regularly
Common Issues
-
API Configuration
- Missing or invalid API key
- Incorrect API endpoint
- Authentication failures
-
Payment Issues
- Insufficient USDC balance
- Transaction signing failures
- Network connectivity problems
-
Shipping Problems
- Invalid shipping addresses
- Unsupported shipping regions
- Missing required address fields
-
Order Status
- Payment confirmation delays
- Order processing timeouts
- Status polling failures
Response Formats
Successful Order Creation
Order Confirmation
Error Response
Order Lifecycle
- Quote: Initial price calculation
- Payment: USDC payment processing
- Delivery: Physical product fulfillment
- Completed: Order fulfilled and delivered
Configuration
Environment Setup
API Endpoints
Product Locators
Amazon Products
Shopify Products
Related Functions
getBalance
: Check USDC balancetransfer
: Transfer tokenstrade
: Swap tokens for USDCfetchPrice
: Get current token prices