A Chrome extension that adds Base Pay checkout functionality to Amazon product pages, integrated with Crossmint for order fulfillment.
Injects a Base Pay button on Amazon product pages.
Files:
manifest.json- Extension configurationcontent.js- Main content script for button injectionstyles.css- Styling for the Base Pay button- Logo files:
BasePayBlueLogo.png,BasePayWhiteLogo.png
Installation:
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
chrome-extension/folder
Handles Base Pay integration and Crossmint order processing.
Setup:
cd checkout-app
npm install
cp .env.example .env.local
# Edit .env.local with your API keys
npm run devRequired Environment Variables:
CROSSMINT_API_KEY- Your Crossmint API key for order processingNEXT_PUBLIC_BASE_ENVIRONMENT- Base network (testnet/mainnet)
- Product Detection: Extension detects Amazon product pages and extracts ASIN, price, and title
- Base Pay Button: Injects a Base Pay button following brand guidelines
- Checkout Flow: Opens checkout app in new tab with product details
- Payment: Uses Base Pay with user data collection (address required)
- Confirmation: Shows order confirmation before placing with Crossmint
- Fulfillment: Crossmint processes the Amazon order and handles shipping
- Follows Base brand guidelines for button design
- Collects required shipping information through Base Pay
- Integrates with Crossmint's Amazon inventory system
- Handles payment to specified wallet address:
0x0B14a7aE11B1651aF832DBC282dD1E020E893c4d - Provides order confirmation and tracking information
- Currently configured for Base Sepolia testnet
- Crossmint integration is in demo mode (uncomment API calls for production)
- Supports both popup callback and redirect callback patterns
- Includes comprehensive error handling and user feedback
- Set up Crossmint project and obtain production API key
- Update Base Pay configuration for mainnet
- Configure proper domain for callback URLs
- Update Crossmint API endpoint to production
- Add proper error tracking and analytics