also looking at this
feat(billing): issue the license from Stripe, not only from the thank-you page
#49
9 files
+439
-2
| @@ -27,6 +27,10 @@ route.get('/hello', () => response.text('hello world')) | ||
| 27 | 27 | // there is nothing for a CSRF token to protect, and the app has none to send. |
| 28 | 28 | route.post('/license/check', 'Actions/License/CheckLicenseAction').skipCsrf() |
| 29 | 29 | route.post('/billing/portal', 'Actions/Billing/OpenPortalAction').skipCsrf() |
| 30 | // Stripe's own copy of a completed checkout. It carries a signature rather | |
| 31 | // than a session cookie, so it skips CSRF like the two above, and it is the | |
| 32 | // reason a buyer who never loads /thanks still gets a key. | |
| 33 | route.post('/billing/webhook', 'Actions/Billing/StripeWebhookAction').skipCsrf() | |
| 30 | 34 | |
| 31 | 35 | // `/coming-soon` is served as an STX view from |
| 32 | 36 | // `storage/framework/defaults/resources/views/coming-soon.stx`. The |