Skip to main content

Overview

Before an agent can charge a payment card, the card must be enrolled in Nevermined. Enrollment tokenizes the card data (Nevermined never stores raw card numbers) and registers the card with the provider so future delegations can authorize off-session charges. The Nevermined App has one card form, and it captures every card through VGS. You don’t choose a provider to pay a Stripe-priced or a Braintree-priced plan: the plan’s fiatPaymentProvider metadata picks the provider that charges the card, at charge time.
  • Stripe-priced plans and Braintree-priced plans are paid with a card enrolled through the credit/debit card form.
  • Visa Trusted Agent plans require a Visa Agentic Token (enrolled through the Visa Agentic option on the same form, where it is offered).

Enrollment Paths

Visa Enrollment

Visa cards are enrolled as Visa Agentic Tokens through the VGS Credential Management Platform (CMP). Card capture happens in a VGS Collect iframe in the Nevermined webapp, so the raw PAN never reaches Nevermined infrastructure.
1

Capture card data

Enter your card details in the VGS Collect iframe rendered by the webapp. VGS Collect’s form.createCard() posts the tokenized card directly to CMP and returns a CMP cardId (CRD…) to the browser. The PAN and CVC never transit the Nevermined backend.
2

Mint the Agentic Token

The browser sends only the cardId (plus BIN-derived last4, brand, and expMonth/expYear) to POST /api/v1/delegation/enroll-visa. The backend calls VGS Agentic POST /cards/{cardId}/agentic-tokens to mint the long-lived Agentic Token (vat_…) and persists it as the card’s providerPaymentMethodId.
3

Create a delegation

After enrollment, create a spending delegation. Each Visa delegation requires a one-time WebAuthn/passkey device-binding ceremony embedded by Visa VTS — see the Visa tab on the Delegations page.

Visa Card Lifecycle

VGS Agentic Tokens are keyed on PAN globally. Re-enrolling the same physical card always resolves to the same cardId/tokenId. If the card is already enrolled under a different Nevermined account, enrollment returns BCK.VISA.0018 (HTTP 409).
No passkey is required at enrollment. The WebAuthn/passkey ceremony happens once per delegation, not once per card.
Visa enrollment is only reachable from the Nevermined webapp. The /api/v1/delegation/enroll-visa endpoint expects a CMP cardId produced by VGS Collect in the browser; it cannot be driven from a server-side SDK or curl call.

Card Properties

All enrolled cards share these core properties:

Managing Cards

Via the Nevermined App

The Nevermined App provides a visual interface for managing your enrolled cards. All your cards appear in one list:
  • View all enrolled cards with their status
  • See active delegations per card with remaining budget
  • View transaction history for each card
  • Deactivate or remove cards

Via the API

The payment-methods endpoint is heterogeneous: it lists enrolled cards across all providers plus, when the user has a smart account configured, the ERC-4337 wallet entry that backs crypto delegations. Filter by provider to narrow to a single shape: a card enrolled through the credit/debit card form is provider=vgs, not stripe or braintree.

Choosing a Provider

Both support the same spending controls (spending limits, usage limits, expiration) and API key linking. The plan’s fiatPaymentProvider metadata decides how a credit/debit card settles, so the same card can pay a Stripe-priced and a Braintree-priced plan. A Visa Trusted Agent plan can only be paid by a Visa Agentic Token. To see which provider a plan settles on, read it from the plan. resolveNetwork() / resolve_network() returns the plan’s card provider (stripe or braintree), or undefined/None if the plan sets no fiatPaymentProvider:
For stripe or braintree, enroll through the credit/debit card form, then create a delegation from the enrolled card. If resolveNetwork returns nothing, the plan sets no fiatPaymentProvider: it is a crypto plan, or a fiat plan registered without one.

What’s Next?

Once your card is enrolled, create a spending delegation to control how agents can charge it.

Create a Delegation

Define spending limits, usage caps, and expiration for agent payments