Set it up
1
Create an offer
Under Offers, click New offer. Enter the cart’s Product id, and optionally a Price id (matched first), choose the plan or add-on it Grants, and keep Take access back after a refund or chargeback ticked unless you want buyers to keep access after a refund. Your webhook stays off until you create one.
2
Create the signing secret
Under Signing secret, click Create secret. It is shown once: copy it.
3
Point your cart at your webhook
Under Your webhook, copy the Purchases URL and the Refunds URL into your cart’s webhook settings, and send the secret with every webhook in the
X-OS-Secret header. Selling on more than one cart? Pick the Cart first: each cart gets its own URLs, so two carts’ order numbers never mix.
purchase or refund), a newline and the raw body, keyed with your secret, in the X-OS-Signature header, in lowercase hex. The purchase must be in the request body, as JSON or form fields.
Regenerate secret replaces the secret. The old one stops working at once, so update your cart straight away.
Stripe Payment Links
Optional. In your Stripe dashboard, add an endpoint with the URL shown under Stripe Payment Links, for the eventscheckout.session.completed, checkout.session.async_payment_succeeded, charge.refunded, charge.dispute.created and charge.dispute.closed. Paste that endpoint’s signing secret (whsec_…) into the box and click Save. A Payment Link’s id (plink_…) goes in an offer’s Product id.
Only one-off payments grant access here. Subscriptions belong to your Stripe billing. Anything else on that Stripe account is ignored.
What a sale does
- Your cart sends the purchase. If it matches an offer, we email the purchase’s email address, in your brand, asking the buyer to confirm it. The link is on your domain and works for 7 days.
- The buyer opens the link. Signed out, they sign in, or sign up where you take sign-ups, and come back to it.
- Signed in with the purchase’s email address and owning a workspace with your agency, they click Confirm purchase. Only then does their workspace get the plan or add-on. If a plan would replace their current one, the page names both.
Purchases
Purchases lists every event received, with its status:
Retry looks at an unmatched or pending purchase again, for example after you add the offer it names. It sends the buyer the confirmation email again, at most once every 7 days.
A refund or chargeback takes back only the sale it names. The customer goes back to the plan you had given them before that sale. Removing an offer takes nothing back.
Sales on your webhook only ever reach your own customers and your own plans.
