Skip to content

feat(billing): bill Shopify App Store installs through Shopify App Pricing, with one billing source per organization #1268

Open

Description

@gkhngyk

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_id and stripe_subscription_id.
  • The Stripe webhook keeps those columns current, matched by stripe_customer_id.
  • Entitlements come from the plan id in plans.js and plans.ts.
  • Access needs an active or trialing subscription_status, checked by plan-guard.js on the server and plan-guard.ts on 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_source on organizations, stripe (default) or shopify, plus the Shopify subscription id and shop.
    • An App Store install sets shopify.
  • Subscription status from Shopify:
    • app_subscriptions/update webhooks map Shopify's subscription state and plan onto the same plan and subscription_status columns, plus subscription_ends_at for 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.

Activity

  1. self-assigned this
    on Oct 20, 2026
  2. added
    enhancement
    e-commerce
    security-review
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

e-commerceenhancementsecurity-review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions