Install
Connect Stripe
Connect Stripe to EzyPromote with restricted test and live keys, see which permissions it needs and why, and manage the connection later.
Why a restricted key
Stripe gives you two kinds of API key. A secret key (sk_live_…) can do everything in your Stripe account, including refunds and payouts. A restricted key (rk_live_…) can do only what you allow.
EzyPromote asks for a restricted key. It only needs to read your payments, customers and products, and to add one webhook endpoint, the address where Stripe sends EzyPromote news of each payment. EzyPromote refuses a secret key or a publishable key, and stores the key encrypted.
Stripe keeps test mode and live mode apart, and so does EzyPromote. You connect two keys:
- a test key, starting
rk_test_, for test purchases - a live key, starting
rk_live_, for real payments
Before you start
You need the Administrator or Developer role in your Stripe account to create a restricted key.
Create and paste your keys
- In Setup, go to step 3, Connect payments.
- Choose Create the key in Stripe (test mode). Stripe’s form opens in a new tab with the name “EzyPromote” and every permission already set.
- In Stripe, choose Create key, confirm, and copy the key. It starts with
rk_test_. - Back in EzyPromote, paste it into Restricted key (test mode) and choose Connect test key.
- Under Live mode, choose Connect live mode. Choose Create the key in Stripe (live mode), create the key the same way, and copy it. It starts with
rk_live_. - Paste it into Restricted key (live mode) and choose Connect live key.
You can stop after the test key and add the live key later, in Setup or in Settings → Tracking and payments. You need it before live payments can create commissions.
If Stripe’s form doesn’t open pre-filled, open The permissions it sets (or set them by hand) in EzyPromote and set each switch in Stripe yourself.
The permissions and why
| Stripe permission | Access | Why EzyPromote needs it |
|---|---|---|
| Customers | Read | Link Stripe customers to referred users. |
| Invoices | Read | Create commissions from paid invoices. |
| Subscriptions | Read | Read the plan and billing interval of subscription payments and cancellations. |
| Charges and Refunds | Read | Reverse commissions when payments are refunded. |
| Payment Intents | Read | Match refunds and disputes to invoices. |
| Payment Disputes | Read | Hold or claw back commissions on chargebacks. |
| Checkout Sessions | Read | Match customers who pay through Checkout. |
| Prices | Read | Apply plan or billing-interval rules. |
| Webhook Endpoints | Write | Register the endpoint EzyPromote receives events on. |
| Balance Transaction Sources | Read, optional | Convert foreign-currency payments with Stripe’s own exchange rate. |
| Promotion Codes | Read, optional | Link each affiliate’s coupon code to its promotion code in Stripe. |
| Products | Read, optional | Show product names when you choose which products a campaign pays on. |
Stripe has no separate switch for early fraud warnings. The permissions above cover them, and EzyPromote uses them to hold commissions when a card network warns of fraud.
If a required permission is missing, EzyPromote doesn’t connect and names what’s missing: “The key is missing these permissions: …”. Edit the key in Stripe, turn them on, and try again. If an optional permission is missing, EzyPromote connects and turns off the feature that needs it.
What happens after you connect
- EzyPromote checks the key. It confirms the key is restricted, in the right mode, and has the permissions above.
- EzyPromote registers its own webhook endpoint in your Stripe account, named “EzyPromote”, in each mode. There is nothing to set up in Stripe’s webhook settings.
- EzyPromote reads your products and prices, so you can pick them by name. Setup shows how many it found.
- New payments create commissions. Refunds reverse them, and disputes hold them.
- A daily check catches anything missed. Every day EzyPromote compares the last 72 hours of payments and refunds, and 120 days of disputes, with what it received from Stripe.
When product names don’t show
Without the optional Products permission, you see “Your Stripe key can’t read product names.” Everything else still works. To fix it, edit the restricted key in Stripe and turn on Products: Read. Until then, a Stripe product shows up to pick once a payment names it.
Check, replace or disconnect later
Your connections are in Settings → Tracking and payments under Payments. It shows one mode at a time: use the Test data switch to see the other.
Check the connection
Choose Check connection. EzyPromote asks Stripe whether the key and the webhook endpoint still work, and tells you what’s wrong if not. For example, if someone deleted the endpoint in Stripe, you see “The EzyPromote webhook endpoint was deleted in Stripe. Reconnect to register it again.”
Replace a key
There is no button to swap a key. To move to a new key, for example after a team change:
- In Stripe, create a new restricted key with the same permissions.
- In EzyPromote, on the Stripe card in Settings → Tracking and payments, choose Disconnect. Do this while the old key still works, so EzyPromote can remove its webhook endpoint.
- Choose Add payment connection, then Stripe, paste the new key and choose Connect Stripe.
- In Stripe, delete the old key.
Do steps 2 and 3 one after the other.
Disconnect
Choose Disconnect. EzyPromote removes the webhook endpoint it created and forgets the key. New payments stop creating commissions. Commissions already earned are kept. If you deleted the key in Stripe first, EzyPromote can’t remove the endpoint: delete the “EzyPromote” endpoint in Stripe’s webhook settings yourself.
Next: Match payments to affiliates.