Security and trust
What runs where.
Each discount runs in Stripe's own runtime. Here is what the app can read and write, what we store, and what we don't hold.
Where the code runs
Stripe runs the script
Each discount is a Stripe coupon backed by a discount script, which Stripe runs in its own runtime when it prices an invoice.
No server of ours in your billing path
The script is pure and synchronous: no network, no Stripe API, no storage, no history. It returns one amount per invoice and cannot see other discounts.
A failing script gives nothing
A run that throws or takes over 500 milliseconds gives zero discount and no error on the invoice. Stripe emails your Stripe account, at most once a day per extension.
Stripe reviews each version
Each new version of the app goes through Stripe's review before it can be installed.
What the app can read and write
Reads coupons, invoices, products, prices, subscriptions and customers; writes coupons only.
The app works in your Stripe Dashboard with these seven permissions, each with the purpose it declares. The discount scripts Stripe runs request none.
coupon_readCoupons · read- List Discount Kit coupons and show how each one is configured.
coupon_writeCoupons · write- Create discount coupons, record revisions and archiving in coupon metadata, and stop new redemptions.
invoice_readInvoices · read- Show discount usage from invoices and preview a coupon's effect without changing anything.
product_readProducts · read- Suggest products and product metadata when targeting a discount.
plan_readPrices · read- Pick prices to preview a discount with.
subscription_readSubscriptions · read- Sample subscriptions' metadata keys and billing settings to warn about discounts that would match nothing, and pick a subscription to preview a discount on.
customer_readCustomers · read- Read customers' metadata so discounts that target customers can be previewed, checked against real invoices, and warned about when no customer carries the key.
What Discount Kit stores
Sign-ups
When you sign up for a plan, here or from the app, the backend keeps one record with these fields.
emailnamecompany- What you type on the sign-up form. Only the email is required.
planintervalstatus- The plan, its billing period (a month) and where it stands: pending, in its free period, active, past due or canceled.
claim_code- The DK-XXXX-XXXX code that links a website sign-up to one Stripe account.
account_id- Your Stripe account id, once the plan is linked to it. Empty until then.
linked_by_user- Who linked it, as a pseudonym: “the HMAC of the user id under TELEMETRY_SALT, as in telemetry; never the id”.
checkout_session_idcustomer_idsubscription_id- For a paid plan, the ids of its Checkout session, customer and subscription, in Discount Kit's own Stripe account, not the one the app is installed on.
trial_ends_atcurrent_period_endcanceled_at- When the free period ends, when the current billing period ends, and when the plan was canceled.
livemode- Whether the record is from live mode or test mode.
past_due_sincesub_event_order- Two bookkeeping fields: when a payment began to fail (the grace start), and the order of the subscription events applied.
idcreatedupdated_at- The sign-up's own id, and when it was created and last changed.
Card details go to Stripe Checkout and never reach us.
Telemetry, when you opt in
Opt-in, off by default, and inert until the manifest names a backend. The switch is in the app's Settings, in the Stripe Dashboard. This version cannot turn it on: its manifest has no backend URL yet, so nothing is read, stored or sent.
What an event carries
Each event is a name from a fixed list plus a few props. The props are only Discount Kit's own type and family keys, the builder mode, extension versions, yes/no flags and small counts.
With every request
Every request also carries the Dashboard user id and the account id. The signature binds the request to them, and the backend needs the account to check that the app is installed. The backend stores the account id as is and the user id only as an HMAC under a secret salt (a pseudonym it cannot reverse).
Never collected
- Customer names, emails or ids, or anything else about the merchant's customers.
- Amounts, prices, totals, or discounts per customer or invoice.
- Invoice, coupon, product, price or subscription contents, ids or names.
- Discount names, configurations, rules text, or anything the merchant types.
This is enforced three times: in the app's event builders, in the app's own checks before anything is queued, and again by the backend.
Attestations
- SOC 2 Type II
- Not held.
- ISO 27001
- Not held.
- PCI DSS
- Not applicable: the app never handles card data; Stripe does.
Status, incidents and vulnerabilities
Status
Shopify app statusstatus.discountkit.app
Incidents and questions
Write to support@discountkit.app.
Reporting a vulnerability
Email support@discountkit.app. The same contact is in security.txt.
Company
Optizio Ltd, registered in England and Wales, company no. 12912929.
The documents live on policy.optiz.io, the Optizio legal site.