Interact with Stripe's payment_intents API endpoint. I'm not committing the index.html that contains client-side code that interacts with the /create-payment-intent endpoint, but it contains sensitive information, so I'm omitting it for now. TL;DR: - Define POST /create-payment-intent endpoint - Include envStripeAPIKey in Context record - Define a top-level Stripe module for making API calls - Define types and instances that align with Stripes request and response types - Depend on the Req library: a higher-level library than http-client |
||
|---|---|---|
| .. | ||
| blog | ||
| days-of-week-habits | ||
| goals | ||
| habitgarden | ||
| habits | ||
| learn | ||
| sandbox | ||
| default.nix | ||
| index.html | ||
| README.md | ||
wpcarro.dev
https://wpcarro.dev is my personal website. I expose a few subdomains, one of which you are probably visiting right now, git.wpcarro.dev. Here are some of the others:
blog.wpcarro.dev: My personal bloglearn.wpcarro.dev: Teaching others to codesandbox.wpcarro.dev: Where I deploy some pet projects and code sketches
Visit https://wpcarro.dev for a sitemap.