Docs › Stores
Web checkout (Stripe)
Sell on the web and unlock the same entitlement in your apps.
- Project → Apps & SDK keys → + Add app → Web (Stripe) → paste a Stripe secret key (
sk_live_…, or a restrictedrk_…key with Checkout, Customers, Subscriptions and Prices). - Stripe → Developers → Webhooks → Add endpoint → the URL Appwind Pay shows. Events:
checkout.session.completed,customer.subscription.updated,customer.subscription.deleted,invoice.paid,charge.refunded. - Paste the endpoint's signing secret back into Appwind Pay (Add app → Web again). Every Stripe event is checked against it.
- Add web products in the catalog with store Stripe and the Stripe price ID (
price_…), and list them in the entitlement.
Open a checkout for a user:
GET /v1/web/checkout?app_user_id=user_42&product_id=web_yearly (SDK key)
→ {"url": "https://checkout.stripe.com/…"}
From the SDK: try await Purchases.shared.webCheckoutURL(productID: "web_yearly").
Customers manage or cancel through Stripe's portal: POST /v1/subscribers/{id}/manage.