Add Stripe store flow for free and paid digital products#28
Merged
devandapaige merged 10 commits intomainfrom Apr 9, 2026
Merged
Add Stripe store flow for free and paid digital products#28devandapaige merged 10 commits intomainfrom
devandapaige merged 10 commits intomainfrom
Conversation
Co-authored-by: Amanda Nelson <jobs@amanda-nelson.com>
✅ Deploy Preview for pythoness-programmer ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: Amanda Nelson <jobs@amanda-nelson.com>
Co-authored-by: Amanda Nelson <jobs@amanda-nelson.com>
Co-authored-by: Amanda Nelson <jobs@amanda-nelson.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/storestorefront for digital products with a free and paid offerWhat was added
src/lib/store/products.ts) and pricing formattersrc/lib/store/stripe.ts) and site URL helper (src/lib/store/site.ts)src/lib/store/beehiiv.ts)src/lib/store/email.ts) using Resend APIsrc/lib/store/fulfillment.ts) for webhook side effectssrc/lib/store/secureDownload.ts)POST /api/store/checkoutPOST /api/store/free-claimGET /api/store/checkout-sessionGET /api/store/paid-downloadPOST /api/store/webhook/store/store/successsrc/docs/store-webhook-testing.mdConfig required
NEXT_PUBLIC_SITE_URLSTRIPE_SECRET_KEYSTRIPE_WEBHOOK_SECRETBEEHIIV_API_KEY(optional)BEEHIIV_PUBLICATION_ID(optional)RESEND_API_KEY(optional, for transactional delivery emails)STORE_EMAIL_FROM(optional)STORE_DOWNLOAD_TOKEN_SECRET(optional, falls back toSTRIPE_WEBHOOK_SECRET)Validation
npm run lint✅npm run build✅Notes
checkout.session.completed.