How do I connect Stripe with a restricted key, and what permissions does it need?

Create a restricted key (rk_live_) on Stripe with Customers, PaymentMethods, SetupIntents, PaymentIntents, Invoices, Credit notes and Refunds set to Write, then paste it into Restricted or Secret Key under Settings, Payment Integrations.

Quick answer1 min readUpdated for AveeCare
Short answer

AveeCare takes a restricted key (it starts with rk_live_), the kind Stripe recommends for apps like AveeCare. On Stripe, go to Developers, API keys and click Create restricted key. Set Customers, PaymentMethods, SetupIntents, PaymentIntents, Invoices, Credit notes and Refunds to Write, and leave everything else at None. Stripe shows the new key only once, so copy it from the window that opens. In AveeCare, open Settings, Payment Integrations, click Connect Stripe and paste it into Restricted or Secret Key with your Publishable key. AveeCare checks the key with Stripe before saving it and names any permission that is missing.

Step by step

  1. On Stripe, go to Developers, then API keys. Make sure you are looking at live keys, not a sandbox or test mode.
  2. Click Create restricted key. If Stripe asks how you will use the key, choose Providing this key to a third-party application.
  3. Give it a name such as AveeCare, and set Customers, PaymentMethods, SetupIntents, PaymentIntents, Invoices, Credit notes and Refunds to Write.
  4. Click Create key and copy the key (rk_live_…) from the window that opens. Stripe will not show it in full again.
  5. Copy the Publishable key (pk_live_…) from Standard keys on the same page.
  6. In AveeCare, open Settings, Payment Integrations, and click Connect Stripe. Leave Test Mode off.
  7. Paste the Publishable key and the restricted key, and click Connect. Then click Test Connection.

Good to know

  • The list is in AveeCare too: under the key box, open Permissions a restricted key needs.
  • Missing a permission? Connect names it in red. Add it on Stripe (the key's ⋯ menu, Edit key) and click Connect again, or click Connect anyway. Anything that needs the missing permission will not work until you add it.
  • Your standard Secret key works too. It starts with sk_live_ and is under Standard keys, behind Reveal live key.
  • Copy the key, not the row. Stripe's list of keys shows a shortened copy such as rk_live_...9a99. That is not the key, and AveeCare will say so.
  • Testing first? Use keys from a Stripe sandbox (rk_test_ and pk_test_) with Test Mode on. Both keys have to come from the same mode.
Written by
Founding Partner, AveeCare

Builds AveeCare full-time. The AveeCare Help Center is written and maintained by the team that builds the product, so the steps in every article come from the same people who ship the features.