# Use your own Stripe account

Connect your own Stripe account to Vezmo with a restricted key and your publishable key, the permissions the key needs, what we check and set up, choosing which checkouts collect into it, what the Stripe card's states mean, updating your keys and disconnecting.

Source: https://vezmo.com/docs/get-paid/your-own-stripe

## Overview

If your business already has a Stripe account, you can connect it to Vezmo and collect payments into it, beside
VezmoPay. Payments you route to it settle in your Stripe balance. Payouts, refunds and disputes for those payments
stay in your Stripe dashboard, not in Vezmo.

You connect it with two keys from your Stripe account: your **publishable key** and a **restricted key**. A restricted
key can do only what you allow, so Vezmo gets just the access it needs. Your secret key isn't accepted.

Connecting, updating keys and disconnecting need the **Edit business details** permission.

(Screenshot: The Stripe card in Settings, Payment gateways: the Stripe logo, Not connected, Use your own Stripe account. Money settles into your Stripe balance, payouts, refunds and disputes stay in Stripe, not in Vezmo; the Visa, Mastercard, American Express, Discover, Apple Pay and Google Pay marks, and Connect Stripe.)

## Connect your Stripe account

1. **Open Payment gateways**
Go to **Settings › Payment gateways** and select **Connect Stripe** on the Stripe card.

2. **Open API keys in Stripe**
Sign in to your Stripe account and go to **Developers › API keys**. **Open Stripe API keys** in the drawer takes you
there.

3. **Create a restricted key**
Select **Create restricted key**, name it Vezmo, and set the permissions in [the table below](#the-permissions-the-key-needs).
Leave everything else at **None**, then create the key.

4. **Copy both keys**
Stripe shows the restricted key once, right after you create it. Copy it, and the publishable key from the same page.

5. **Paste them and connect**
Paste the **Publishable key** (it starts with pk_live_) and the **Restricted key** (it starts with rk_live_), then
select **Connect**. Confirm it's you with the code we email you and your passkey or authenticator app.

(Screenshot: Connect your Stripe account: step 1 Open API keys in Stripe with an Open Stripe API keys button; step 2 Create a restricted key with the permission table (Payment Intents Write, Charges Read, Webhook Endpoints Write, Payment Method Domains Write, optional, lets Apple Pay and Google Pay show); step 3 Copy both keys; step 4 Paste them here with the Publishable key and Restricted key fields; the note on the cancelled $0.50 Vezmo key check; Cancel and Connect.)

Both keys must be live keys: Vezmo takes live keys only. The drawer tells you before you connect if one isn't, or if
you pasted your secret key.

### The permissions the key needs

| Permission | Access | Why |
| --- | --- | --- |
| **Payment Intents** | Write | Starts each payment on your account and reads it back once your customer pays. |
| **Charges** | Read | Shows who paid and with which card. |
| **Webhook Endpoints** | Write | Sets up payment updates on your account. |
| **Payment Method Domains** (optional) | Write | Lets Apple Pay and Google Pay show on your checkouts. Without it, cards still work. |

We check the first three when you connect. If one is missing, we say which, and nothing is saved. Vezmo doesn't ask
to refund: you refund in Stripe, and Vezmo hears about it.

### What we check and set up

When you select **Connect**, we:

- check the keys with Stripe. To do that, we create a $0.50 payment on your account and cancel it straight away, so no
  money moves. You'll see it in Stripe as a cancelled payment named Vezmo key check;
- set up payment updates on your Stripe account (a webhook endpoint), so Vezmo knows when a payment succeeds, fails
  or is refunded;
- store your restricted key encrypted. It's never shown again: the card shows only its start and last four
  characters.

Card details your customers enter go straight to Stripe. They never reach Vezmo.

We email you, and the owner of the business, each time a Stripe account is connected or its keys change.

## Choose which checkouts use it

Once your Stripe account is connected, **Where each payment goes** appears on the same page. For **Payment links**
(agreements follow them), **Invoices** and **Product checkout**, choose VezmoPay or your Stripe account. Changes apply
to new payments. Embedded and API checkouts always use VezmoPay.

Sending a checkout's payments to your Stripe account asks you to confirm it's you. Payments collected there are under
**Payments › Gateway Payments**.

## What the Stripe card shows

| You see | What it means |
| --- | --- |
| Not connected | No Stripe account is connected. Select **Connect Stripe**. |
| Connected | **Live**, the restricted key's start and last four characters, your publishable key and when you connected. **Update keys** and **Disconnect** are below them. |
| Needs new keys | Stripe refused the keys, for example because the key was deleted, rolled or lost a permission. The card says why. Payments can't go to this Stripe account until you update the keys. We email you once when it happens. |
| Reconnect needed | This Stripe account was connected the old way, which Vezmo no longer uses. Select **Reconnect with your keys** and connect it again as above. Checkouts you sent to it move to the new connection. |

## Update your keys

Select **Update keys**, create a new restricted key in Stripe with the same permissions, paste both keys and select
**Save keys**. We check the new keys and set up payment updates again. You can then delete the old key in Stripe.

## Disconnect

Select **Disconnect** and confirm. New payments stop going to your Stripe account, and any checkout you sent to it goes
back to VezmoPay. Money already in Stripe stays there. We remove the payment updates we set up on your Stripe account
and delete the stored key. You can connect again any time with your keys.

## Common questions

### Can I use my secret key instead?

No. A secret key can do anything in your Stripe account. A restricted key limits Vezmo to the permissions in the table
above, and you can delete it in Stripe at any time.

### Where do I refund a payment or answer a dispute?

In your Stripe dashboard. Vezmo shows these payments under **Payments › Gateway Payments**, but the money, refunds and
disputes are in Stripe.

## Related

- [Two checks on money actions](/docs/get-started/two-checks)
