Payment Methods
Nevermined supports both cryptocurrency and fiat payment methods, providing flexibility for all types of users.Cryptocurrency Payments
For users with crypto wallets, direct blockchain payments offer instant settlement:- TypeScript
- Python
Fiat Payments
For users preferring traditional payment methods, Stripe integration provides credit card support:- TypeScript
- Python
Checking the Balance of a Payment Plan
After a user purchases a plan, they can check their balance for that plan. The balance represents the number of credits the user has available to use within the plan.Time-based plans provide a balance of 1 credit for subscribers. When the plan expires, this balance will be zero.
- TypeScript
- Python
Understanding Plan Types and Balances
Credits-Based Plans
Users receive a specific number of credits upon purchase. Each API call consumes credits based on your configuration.
Time-Based Plans
Users receive 1 credit that grants unlimited access for the specified duration. Balance becomes 0 when expired.
Payment Flow Examples
Complete Purchase Flow
1
Discover Plans
Users browse available payment plans and select one that fits their needs
2
Initiate Purchase
Call
orderPlan() or orderFiatPlan() depending on payment method3
Complete Payment
For crypto: transaction is processed on-chain
For fiat: user completes Stripe checkout
4
Verify Purchase
Check balance to confirm the plan was successfully purchased
5
Access Services
Use the plan to access AI agents and services
Error Handling
- TypeScript
- Python
Integration Examples
Web Application Integration
Next Steps
After users purchase plans, they can:Query AI Agents
Learn how to access AI services with purchased plans
Monitor Usage
Track credit usage and plan status