Repository navigation
Open
Labels
e-commerceShopping, product catalog, store and marketplace connectorsenhancementNew feature or requestsecurity-reviewTouches credentials, scopes or personal data; needs a security review before merge
Description
Summary
Apps listed in the Shopify App Store must charge through Shopify. So merchants who install from the App Store pay on their Shopify bill, and everyone else keeps paying through Stripe as today. The plans and prices are the same on both doors. Each organization has one billing source, so nobody is billed twice. This is SHOP-006 and SHOP-007 of #1265.
How billing works today
- An organization's plan lives on
organizations:plan,subscription_status,subscription_ends_at,plan_overrides,stripe_customer_idandstripe_subscription_id. - The Stripe webhook keeps those columns current, matched by
stripe_customer_id. - Entitlements come from the plan id in
plans.jsandplans.ts. - Access needs an active or trialing
subscription_status, checked byplan-guard.json the server andplan-guard.tson the web.
Scope
- Plans in the Partner Dashboard: Starter and Growth as Shopify App Pricing plans, with the same prices as Stripe. Shopify hosts the plan page. Enterprise stays a sales contract.
- Billing source:
- A
billing_sourceonorganizations,stripe(default) orshopify, plus the Shopify subscription id and shop. - An App Store install sets
shopify.
- A
- Subscription status from Shopify:
app_subscriptions/updatewebhooks map Shopify's subscription state and plan onto the sameplanandsubscription_statuscolumns, plussubscription_ends_atfor the quota period.- The plan guards then work unchanged on both doors, and so do the plan limits.
- No double billing:
- An organization billed by Shopify doesn't see Stripe checkout or the portal. The checkout route refuses it.
- Stripe webhook updates don't touch it.
- An organization billed by Stripe that installs the app keeps Stripe.
- Moving to Ansvisor billing:
- When a Shopify-billed organization adds a brand that isn't on that store, it is told it will move to Ansvisor billing.
- It moves when the Stripe subscription becomes active. The Shopify subscription is cancelled then, never before, so the organization is never without a plan and never paying twice.
- Uninstall: cancels the Shopify subscription with the app, and the organization's status follows Shopify's.
Acceptance criteria
- On a development store, upgrade, downgrade and cancel in Shopify show in Ansvisor's plan and limits within minutes.
- One organization never has two active charges: a Shopify subscription and a Stripe subscription at the same time (checked across install, move and uninstall).
- A Stripe-billed organization's billing doesn't change when it installs the app.
Metadata
Metadata
Assignees
Labels
e-commerceShopping, product catalog, store and marketplace connectorsenhancementNew feature or requestsecurity-reviewTouches credentials, scopes or personal data; needs a security review before merge
Activity