Prerequisites
Before you begin, make sure you have:Development Environment
- Node.js 16+ and npm/yarn (for TypeScript)
- Python 3.8+ (for Python)
- A code editor (VS Code recommended)
Nevermined API Key
Get your API key from the Nevermined App
Test Tokens (Optional)
Some test tokens for testing (you can get some USDC from here)
Installation
- TypeScript/JavaScript
- Python
Getting Your API Key
Follow the Get Your API Key guide to create your Nevermined API key, then store it securely as an environment variable:Initialize the Payments Libraries
- TypeScript
- Python
Environment Configuration
Choose the appropriate environment for your use case:Sandbox Environment
Sandbox Environment
- Use case: Development and testing
- Payments: Test fiat and tokens (free)
- Environment:
'sandbox' - Network: Base Sepolia testnet
Live Environment
Live Environment
- Use case: Live applications
- Payments: Fiat (via Stripe) and any ERC-20 tokens
- Environment:
'live' - Network: Base
Common Issues
Invalid API Key Error
Invalid API Key Error
Make sure your API key is correctly set in your environment variables and has the proper permissions.
Network Connection Issues
Network Connection Issues
Check that you’re using the correct environment (‘sandbox’ or ‘live’) and that your network connection is stable.