ReviewOS

also looking at this

stacks/uplink

feat(billing): issue the license from Stripe, not only from the thank-you page

#49
Merged glennmichael123 wants to merge feat/stripe-webhook into main
9 files +439 -2
config/payment.tsmodified+7-0
Changes to config/payment.ts
@@ -14,6 +14,13 @@ export default {
1414 stripe: {
1515 publishableKey: env.STRIPE_PUBLISHABLE_KEY || '',
1616 secretKey: env.STRIPE_SECRET_KEY || '',
17 /**
18 * The signing secret of the account webhook endpoint,
19 * `/api/billing/webhook`, which is what issues a license for a checkout
20 * whose buyer never reached the thank-you page. Stripe shows it as
21 * `whsec_...` when the endpoint is created.
22 */
23 webhookSecret: env.STRIPE_WEBHOOK_SECRET || '',
1724 },
1825
1926 /**