DocumentationGetting Started
Connecting your Stripe account to Phoros
Link your Stripe account so Phoros can take card payments on your invoices and online checkouts. Create a key with the right permissions, add the Phoros webhook, then paste your key into Phoros. About ten minutes, once.
Connecting Stripe lets Phoros take card payments for you, on your invoices and on your online checkouts, with the money landing straight in your own Stripe account. You set this up once; after that, every payment flows through automatically.
To connect, you'll do three quick things in Stripe: create a key, add a webhook (so Stripe can tell Phoros when a payment goes through), and copy the key into Phoros. It takes about ten minutes, and you only do it once.
Here's the whole flow:
1. **Create a key** in Stripe and give it the right permissions.
2. **Add a webhook** so Stripe notifies Phoros the moment a payment, refund, or dispute happens.
3. **Add your key to Phoros**, and you're connected.
> **Before you start:** sign in to Stripe at **dashboard.stripe.com** with the account where you want your money to land. Make sure you're in **live mode** (not test mode), so you're connecting the real account that receives payments.
---
## Step 1: Open your Stripe settings
In your Stripe dashboard, look to the **top-right corner** and click the **gear icon** (**Settings**). This opens your account settings.
## Step 2: Go to Developers
On the Settings page, find the **Developers** card under *Account settings*, on the right ("Workbench, developer tools, and more"), and click it. This is where Stripe keeps your keys and webhooks.
## Step 3: Open your API keys
In the Developers area, find **API keys** and click **Manage API keys**. You'll land on the page that lists your keys, under **Standard keys**.
## Step 4: Get your keys (with the right permissions)
You need two things here: your **Publishable key**, and a **Secret key** for Phoros to use.
**Your Publishable key** starts with `pk_live_…` and is always visible. Copy it now and keep it handy.
**Your Secret key** is the one that lets Phoros actually take payments. You have two ways to create it; pick whichever you're comfortable with:
**Option A: a Secret key (simplest).** Click **+ Create secret key**, then copy the new key (it starts with `sk_live_…`) right away. Stripe only shows it once. This gives Phoros everything it needs, with no extra setup.
**Option B: a Restricted key (more secure, recommended).** Click **+ Create restricted key** and choose **"Providing this key to a third-party application"**, which is exactly what Phoros is. A restricted key only does what you allow, so Phoros can take payments and refunds *without* full access to your account. Set these permissions to **Write**, then create the key and copy it (it starts with `rk_live_…`):
- **Charges**: Write
- **Customers**: Write
- **Checkout Sessions**: Write
- **Payment Intents**: Write
- **Setup Intents**: Write
- **Refunds**: Write
- **Balance**: Read
- *(Only if you take in-person card payments, **Terminal**: Write)*
> **Treat this key like a password.** It's a long string starting with `sk_live_` or `rk_live_`. Copy it straight into Phoros in Step 6, and don't paste it anywhere else or share it with anyone.
## Step 5: Add the webhook (so Phoros hears about payments)
A "webhook" is simply a heads-up that Stripe sends Phoros the instant a payment clears, a refund is made, or a dispute is opened, so your invoices and reports update on their own. You set it up once:
1. Still in the **Developers** area, open **Webhooks** (it's listed next to API keys).
2. Click **Add endpoint** (on newer Stripe accounts this may say **+ Add destination**).
3. In the **Endpoint URL** box, paste this exactly:
`https://www.phoroscloud.com/stripe/notification`
4. When Stripe asks which events to send, select these (or simply choose **"Send all events"**; Phoros quietly ignores any it doesn't need, so this is perfectly safe):
- `checkout.session.completed`
- `checkout.session.async_payment_succeeded`
- `payment_intent.succeeded`
- `payment_intent.payment_failed`
- `invoice.payment_succeeded`
- `charge.dispute.created`
5. Click **Add endpoint** to save.
> **You can ignore the "Signing secret."** After you add the endpoint, Stripe shows a *Signing secret*, and there's nothing to do with it. Phoros doesn't require it, so you don't need to copy it anywhere.
## Step 6: Add your key to Phoros
Back in Phoros, open your organization's **payment settings** and paste in:
- Your **Publishable key** (`pk_live_…`)
- Your **Secret key** or restricted key (`sk_live_…` or `rk_live_…`)
Save, and Stripe is connected. Card payments now flow straight into your own Stripe account, and the webhook keeps Phoros updated automatically.
> **Not sure where to add them?** Just ask your AI Colleague right inside Phoros. They'll take you to the exact spot, or set it up with you.
---
## You're connected: what happens next
With Stripe connected:
- **Invoices** you send can be paid by card, with the money landing in your Stripe account.
- **Online checkouts** on your Phoros website or store take card payments automatically.
- **Refunds** you issue in Phoros are sent back to your customer through Stripe.
- **Payment updates** (paid, failed, or disputed) reach Phoros instantly through the webhook, so your records stay accurate on their own.
You never have to touch any of this again, unless you ever replace your key in Stripe, in which case just paste the new one into the same place in Phoros.
## Need a hand?
Write to us at **contact@phoroscloud.com**, or ask your AI Colleague right inside Phoros. Connecting Stripe is something we're always glad to walk through with you.