Licenses mint with the Paddle customer id as org — let the buyer name it before minting #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dogfood finding (Nikola): first purchases mint licenses whose
orgpayload field is the Paddle customer id (ctm_…), because checkout passes nocustom_data.organd the webhook falls back totxn.CustomerID. Cairn then displays it verbatim: "Plan: Licensed — ctm_01kyt…". The fallback comment inpaddle.goeven says "until the account area lets customers name their organization" — orgs shipped since (#6), the webhook was never caught up.Design (Nikola): the buyer should be able to name the org/license before the key is minted, since
orgis sealed into the signed payload and only changes on the next re-sign.Plan:
account.html): the buy box gains an "Organization name on the license" input, prefilled with the signed-in account's org name (already loaded byloadOrg), passed ascustom_data.orgat checkout. The webhook already preferscustom_data.org— no server change needed for this path.custom_data.orgis absent/blank, resolve buyer email → account → org name (the store has it) instead of the Paddle customer id. Actm_…org should become impossible for any buyer with an account.ctm_id — decide whether to do that or leave history as-is.Note: per-license display labels already exist post-hoc (#4,
PATCH /v1/licenses/{id}label) — this issue is specifically about the immutableorgfield inside the signed payload.