Skip to content

Stripe and webhooks

Sellsaw connects to Stripe with a restricted key — one you create with only the permissions listed on screen — and never asks for your secret key. Once the key is saved, Sellsaw registers its webhook endpoint and your domain with Stripe itself. Sellsaw → Settings walks through it as a four-step checklist.

Open your Stripe API keys, click Create restricted key, name it anything, and start from zero permissions. Then set exactly these, leaving every other one on None:

The Payments tab: a three-step setup checklist with Connect Stripe marked test mode, the webhook endpoint registered, and the publishable key saved.

Permission Level Why
Webhook Endpoints Write Set up delivery of payment notifications
PaymentIntents Write Take payments
Customers Write Remember buyers between steps
PaymentMethods Write One-click upsells, with Sellsaw Pro
Charges Read Show orders and reconcile
Refunds Write Refund from your orders screen
Payment Method Domains Write Show Apple Pay and Google Pay on your domain
Account Read Show which account is connected — optional

Write includes Read. With this key Sellsaw cannot see your balance, move money out, or read anything not listed. Stripe shows the key once; it begins with rk_. Paste it into Restricted key.

Then copy the publishable key from the same page — it starts with pk_, is safe to share, and appears in your checkout so Stripe can load. Without it, no checkout page will render.

Once a restricted key is saved, Sellsaw creates a webhook endpoint on your Stripe account pointing at your site, and stores the signing secret Stripe returns. Settings shows the endpoint. You do not create it in the Stripe dashboard.

If Stripe cannot reach your address — a local development site — no endpoint is registered and Settings says so. Forward events with the Stripe CLI instead; it signs with its own secret, which is why you paste that one rather than Sellsaw creating it.

Apple Pay and Google Pay, registered for you

Section titled “Apple Pay and Google Pay, registered for you”

Stripe shows a wallet button only on a domain registered to your account. When you save the key, Sellsaw registers your site’s domain with Stripe — the Payment Method Domains: Write permission is what lets it — and the fourth step of the checklist shows the domain with Apple Pay and Google Pay each active or inactive. Stripe handles Apple’s verification itself; there is no file to download or host.

  • Missing the permission? Settings says The key is missing “Payment Method Domains: Write”. Cards still work; only the wallet buttons are missing. Edit the key in Stripe, set Payment Method Domains to Write, and save the key in Settings again.
  • Registered already? If you added the domain in the Stripe dashboard yourself, Sellsaw finds it and reuses it. Stripe allows each domain once per account.
  • A wallet inactive? Settings shows Stripe’s reason. Usually the site is not reachable over HTTPS at that address yet. Fix that and save the key again; Sellsaw asks Stripe to check once more.
  • Test and live. A test key registers the domain in test mode only. Switching to a live key registers it again for live, which Stripe also applies to test mode.
  • Only your site’s address. Sellsaw registers the domain your WordPress address uses — shop.example.com, or www.example.com, exactly as set under Settings → General. If buyers reach the checkout on another domain too, add that one in Stripe under Settings → Payment method domains.
  • On a development host nothing is registered: Stripe must reach the domain to verify it.

Apple Pay then appears in Safari on a device with a card in Wallet, and Google Pay in Chrome with a card saved to Google Pay. Both are on by default in Stripe’s payment method settings; if you switched either off there, switch it back on.

The endpoint is tied to your site’s address. Move from staging to production, change domains, or switch from HTTP to HTTPS, and Stripe is still sending events to the old address. Sellsaw notices — Settings shows The site address changed. Save your key again to re-register. — and re-registers the endpoint when you do. The new domain is registered for Apple Pay and Google Pay at the same time.

A key beginning rk_test_ puts Sellsaw in test mode; rk_live_ is live. Settings says which. Test mode takes test cards only — 4242 4242 4242 4242 succeeds — and records orders like any other, so you can walk a funnel end to end before a real buyer does. Swap in a live key when you are ready; the webhook and your domain are registered again for the live account.

Disconnect deletes the keys and the endpoint from this site. It does not delete the endpoint or the registered domain from your Stripe account; remove those in the Stripe dashboard if you are done with them.