Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
A lightweight Stripe Checkout Session endpoint built on Val Town with Hono + Deno.
Base URL: https://stripe.val.run
Renders this README as HTML.
Creates a Stripe Checkout Session in Elements UI mode and returns the
clientSecret needed to mount
Stripe Elements
on your frontend.
Response:
{ "clientSecret": "cs_test_..." }
| Variable | Required | Description |
|---|---|---|
STRIPE_SECRET_KEY | ✅ | Your Stripe secret API key (sk_test_... or sk_live_...) |
STRIPE_PRICE_ID | Optional | A Stripe Price ID (price_...). Defaults to {{PRICE_ID}} placeholder. |