Overview
The "Nevermined Payments" node integrates with the Nevermined platform to manage AI-related payments, subscriptions, and access control. Specifically, the Order Plan operation allows users to purchase subscription plans or credit packs for AI services using various payment methods including cryptocurrencies (USDC, ETH) and fiat options (credit card, bank transfer).
This node is beneficial in scenarios where developers or businesses want to automate the purchase of AI service plans, manage bulk orders, apply promotional discounts, or specify recipient addresses for credits. For example, a company could use this node to programmatically order multiple AI credit packs for different projects or team members, paying via Ethereum or credit card.
Properties
| Name | Meaning |
|---|---|
| Plan ID | The unique identifier of the subscription plan to order. |
| Payment Method | The method used to pay for the order. Options: - Crypto - USDC - Crypto - ETH - Fiat - Credit Card - Fiat - Bank Transfer |
| Order Options | Additional options for the order: - Quantity: Number of plans to order (bulk purchases). - Recipient Address: Ethereum address to receive credits if different from payer. - Promo Code: Promotional code for discounts. - Auto-Renew: Whether to automatically renew subscription plans (only shown for fiat payment methods). - Notes: Additional notes or references for the order. |
Output
The output JSON object for the Order Plan operation includes:
orderId: A generated unique order identifier.transactionHash: Blockchain transaction hash related to the order (if applicable).planId: The ID of the ordered plan.status: Status of the order, typically"completed".paymentMethod: The selected payment method string.balance: An object describing the subscriber's balance:isSubscriber: Boolean indicating if the user is a subscriber.total: Total credits available.used: Credits already used.remaining: Credits remaining.
paymentDetails: Details about the payment type and subtype, including blockchain network info if crypto.createdAt: Timestamp of order creation.environment: The API environment used (productionortest).message: Human-readable message confirming order success.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Nevermined Payments API.
- The node makes HTTP requests to the Nevermined API endpoints, which differ based on environment (
productionortest). - Proper configuration of API base URLs and credentials is necessary.
- Ethereum addresses must be valid and start with "0x" when specified as recipient addresses for crypto payments.
Troubleshooting
- Missing API Key: The node will throw an error if no API key is provided. Ensure the API key credential is configured correctly.
- Invalid Plan ID: If the Plan ID is missing or incorrect, the node throws an error. Verify the plan ID before ordering.
- Quantity Validation: Quantity must be at least 1; otherwise, an error is thrown.
- Ethereum Address Format: For crypto payments, recipient addresses must start with "0x". Invalid formats cause errors.
- API Errors: If the Nevermined API returns non-success status codes, the node surfaces these with messages. Check network connectivity, API keys, and plan/payment configurations.
- Auto-Renew Option Visibility: The auto-renew option only appears for fiat payment methods (credit card, bank transfer). Using it with crypto payments is not supported.
Links and References
- Nevermined Documentation
- Nevermined API Reference (general link, check for specific endpoints)
- Ethereum address format guidelines: https://ethereum.org/en/developers/docs/accounts/