Public
Back
Version 5
1/23/2025
/** @jsxImportSource https://esm.sh/react */
import { micromark } from "https://esm.sh/micromark@3";
import { email } from "https://esm.town/v/std/email?v=11";
import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook";
import { html } from "https://esm.town/v/stevekrouse/html";
import { renderToString } from "npm:react-dom/server";
import Stripe from "npm:stripe";
const stripe = new Stripe(Deno.env.get("stripe_sk_customer_readonly") as string, {
apiVersion: "2020-08-27",
});
function getStripeCustomer(customerId: string) {
return stripe.customers.retrieve(customerId);
}
// const subject = "Welcome to Val Town Pro";
// const welcomeEmail = (
// <div style={{ maxWidth: "500px", fontFamily: "sans-serif" }}>
// <p>
// Thank you for subscribing to Val Town Pro!
// </p>
// <p>
// You now have higher limits across the board, allowing you to run your vals in production. Your subscription also
// includes custom domains, smarter Townie, and{" "}<a href="https://val.town/pricing">lots more</a>.
// </p>
// {
// /* <p>
// TODO - advirtise a val or two
// One of my favorite vals that's only only available to Pro users
// is this Twitter alert.
// </p> */
// }
// <p>
// If you have any issues, please <a href="https://discord.com/invite/dHv45uN5RY">ask on Discord</a>{" "}
// (in #general) and we'll respond right away.
charmaine-cancelledstripesubscriber.web.val.run
Updated: January 23, 2025