ProtectedaccountProtected OptionalappProtectedcurrentProtectedenvironmentProtectedenvironmentProtectedheliconeProtectednvmProtectedreturnProtectedschemeProtected OptionalversionCreate a new delegation for any supported provider (stripe, braintree, visa, or erc4337).
Note: Visa delegations require a per-delegation device-binding ceremony (FIDO/passkey + assuranceData) that must be performed in the browser via the Nevermined webapp. The SDK can list and consume an already- created Visa delegation but cannot create one programmatically.
The delegation creation parameters
The created delegation ID (and token for card delegations)
It returns the account address associated with the NVM API Key used to initialize the Payments Library instance.
The account address extracted from the NVM API Key
ProtectedgetInternalReturns the HTTP options required to query the backend.
HTTP method.
Optionalbody: anyOptional request body.
OptionalextraHeaders: Record<string, string>Optional per-call header overrides. Use
{ 'X-Current-Org-Id': orgId } to target a specific workspace for
one call without mutating the instance-level pin.
HTTP options object.
Returns the environment name used to initialize the Payments instance.
The environment name (e.g. 'sandbox', 'live')
Returns the current organization context applied to every authenticated
backend request via the X-Current-Org-Id header.
null means "no pinned workspace" — the backend falls back to the
caller's API-key tag or most-recent active membership.
ProtectedgetInternalGet HTTP options for public backend requests (no authorization header). Converts body keys from snake_case to camelCase for consistency.
HTTP method
Optionalbody: anyOptional request body (keys will be converted to camelCase)
HTTP options object
Get the agent's purchasing power — accessible cards, active delegations, and combined remaining budget.
List the user's existing delegations.
When accessible: true, only usable delegations (Active, non-expired, with budget) are returned.
Optionaloptions: ListOptionsList the user's enrolled payment methods for card delegation.
When accessible: true, only cards accessible to the requesting API key are returned.
Optionaloptions: ListOptionsProtectedparseSets the organization context applied to every subsequent authenticated
backend request via the X-Current-Org-Id header.
Pass null to clear the pin and fall back to the backend default.
Org ID (e.g. org-…) or null to clear.
Update a payment method's alias and/or allowed API keys.
Staticget
API for managing payment methods and delegations (card and crypto).