also looking at this
feat(billing): issue the license from Stripe, not only from the thank-you page
#49
9 files
+439
-2
| @@ -14,6 +14,13 @@ export default { | ||
| 14 | 14 | stripe: { |
| 15 | 15 | publishableKey: env.STRIPE_PUBLISHABLE_KEY || '', |
| 16 | 16 | 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 || '', | |
| 17 | 24 | }, |
| 18 | 25 | |
| 19 | 26 | /** |