Thoughts on this approach with stripe checkout on a cloudflare page with workers

I have a simple product I'm selling - its packaged software hosted in a private github repo - with a one off payment or yearly subscription to access it. I have a cloudflare pages site (https://codylabs.io/) and want to take payment in a fully hosted payment gateway (stripe checkout https://stripe.com/en-pt/payments/checkout). Stripe checkout has a payment completed webhook, so after payment and that webhook is sent, I want to fire up a cloudflare worker to provision access to the github repo and send an email to the user. Is this a good use case for workers? Any templates or blogs you're aware of on building this? And finally is there a simple cloudflare email service for this as well. Many thanks in advance ๐Ÿ™
AI Code Reviews | AI Code Reviews
AI Code Review and Summarization for GitHub and GitLab.
1 Reply
davidw2920
davidw2920OPโ€ข8mo ago
Hmm I actually think Functions make more sense as its a cloudflare pages hosted site https://developers.cloudflare.com/pages/functions/get-started/
Cloudflare Docs
Functions - Get started ยท Cloudflare Pages docs
This guide will instruct you on creating and deploying a Pages Function.
Want results from more Discord servers?
Add your server