Skip to main content

Commerce & Payments

Stripe

Connect Stripe so your agents can create products and prices, send payment links, look up customers and check payments.

Stripe is the cash register behind many online stores: it holds your product catalog, takes card payments and sends the money to your bank. Connecting it lets your agent work that register for you — add a product, put a price on it and send a customer a link to pay, right from a chat.

Prefer guided AI setup?

Instead of following these steps manually, you can use the AI Credential Assistant — describe what you want to connect and the AI will walk you through the setup step by step, tailored to your account.


What you can do with it​

  • Create products and give them a price — one-time, or monthly for a plan
  • Create payment links (buy.stripe.com/…) to send in a chat, including links that work only once
  • Look up customers by email and create new ones
  • Check recent payments and your balance
  • Go further with invoices, subscriptions, discount codes and refunds

Before you start​

  • A Stripe account.
  • Start in test mode. Test mode is Stripe's practice area: nothing real is charged, and your links start with buy.stripe.com/test_. Switch to your live key once everything works.

Connect it​

Step 1: Get your secret key from Stripe​

  1. Open the Stripe dashboard → Developers → API keys.
  2. Copy the Secret key (sk_test_…), or click Create restricted key (rk_test_…) and turn on only what your agent needs — for example Products, Prices and Payment Links set to Write.

Step 2: Add it to Nirvai​

  1. In Nirvai, open Credentials → Create credential and pick Stripe.
  2. Name it after the mode, e.g. Stripe (test), paste the key and click Save.
Keep test and live apart

Create two credentials — "Stripe (test)" and "Stripe (live)" — instead of swapping the key inside one. Your tools keep working in test mode while you check them, and you choose exactly which agents can touch real money.


What you'll need to enter​

FieldWhat it is
Secret keyA private password that lets Nirvai act on your Stripe account for you. Starts with sk_ or rk_ (restricted).
Amounts are written in cents

Stripe counts money in the currency's smallest unit: USD 15.00 is 1500. Currencies without cents are not multiplied: CLP 15.000 is 15000. Prices can't be edited after they're created — create a new one instead.


Troubleshooting​

ProblemFix
"You did not provide an API key" or "Invalid API Key"The key was copied incompletely or revoked. Create a new one in Stripe and update the credential.
"The provided key does not have the required permissions"Your restricted key is missing that permission. Edit it in Stripe and turn on the resource named in the message.
A product you just created doesn't appear in a searchStripe's search takes about a minute to catch up. Listing products shows it right away.
Your payment links start with test_You're using a test key — that's expected. Connect a live key when you're ready to charge.
You can't create a live keyStripe asks you to verify your account email first. If that email is no longer yours, contact Stripe support.

Next steps​

Got your credential? Add the Stripe tools

Open Custom Tools → Templates and search Stripe: there are ready-made tools for products and prices, payment links and checkout, customers, invoices, subscriptions, refunds and reports. Pick the ones you need, choose your Stripe credential, and add them to an agent in the Agent Builder. See Use a Tool Template.

Tools that move money

Some Stripe tools refund payments, charge a saved card or cancel subscriptions — and those can't be undone. Their descriptions tell the agent to confirm with the user first. Give them only to agents that need them, and test them on your test credential before going live.