Skip to main content
Glama
SubscriptionPaymentSuccess.tsx7.28 kB
import { Body, Button, Container, Head, Heading, Html, Img, Preview, Section, Tailwind, Text, } from '@react-email/components'; export type SubscriptionPaymentSuccessProps = { username: string; // The name of the user receiving the email email: string; // The email address of the user planName: string; // The name of the subscription plan organizationName: string; // The name of the organization subscriptionStartDate: string; // The start date of the subscription manageSubscriptionLink: string; // A link for the user to manage their subscription }; export const SubscriptionPaymentSuccessEN = ({ username, planName, organizationName, subscriptionStartDate, manageSubscriptionLink, }: SubscriptionPaymentSuccessProps) => { const previewText = `Your payment for ${planName} subscription is confirmed`; return ( <Html> <Head /> <Preview>{previewText}</Preview> <Tailwind> <Body className="m-auto px-2 font-sans"> <Container className="mx-auto my-[40px] max-w-[465px] rounded-xl border border-[#eaeaea] border-solid bg-white p-[20px]"> <Section className="mt-[32px]"> <Img src="https://intlayer.org/apple-touch-icon.png" width="40" height="37" alt="Intlayer" className="mx-auto my-0" /> </Section> <Heading className="mx-0 my-[30px] p-0 text-center font-normal text-[24px] text-black"> Payment Confirmed </Heading> <Text className="text-[14px] text-black leading-[24px]"> Hello {username}, </Text> <Text className="text-[14px] text-black leading-[24px]"> Thank you for your payment! Your subscription to the{' '} <strong>{planName}</strong> plan is now active. </Text> <Text className="text-[14px] text-black leading-[24px]"> Start Date: <strong>{subscriptionStartDate}</strong> </Text> <Text className="text-[14px] text-black leading-[24px]"> Organization: <strong>{organizationName}</strong> </Text> <Section className="my-[32px] text-center"> <Button className="rounded-md bg-[#000000] px-5 py-3 text-center font-semibold text-[12px] text-white no-underline" href={manageSubscriptionLink} > Manage Your Subscription </Button> </Section> </Container> </Body> </Tailwind> </Html> ); }; export const SubscriptionPaymentSuccessFR = ({ username, planName, organizationName, subscriptionStartDate, manageSubscriptionLink, }: SubscriptionPaymentSuccessProps) => { const previewText = `Votre paiement pour l'abonnement ${planName} est confirmé`; return ( <Html> <Head /> <Preview>{previewText}</Preview> <Tailwind> <Body className="m-auto px-2 font-sans"> <Container className="mx-auto my-[40px] max-w-[465px] rounded-xl border border-[#eaeaea] border-solid bg-white p-[20px]"> <Section className="mt-[32px]"> <Img src="https://intlayer.org/apple-touch-icon.png" width="40" height="37" alt="Intlayer" className="mx-auto my-0" /> </Section> <Heading className="mx-0 my-[30px] p-0 text-center font-normal text-[24px] text-black"> Paiement Confirmé </Heading> <Text className="text-[14px] text-black leading-[24px]"> Bonjour {username}, </Text> <Text className="text-[14px] text-black leading-[24px]"> Merci pour votre paiement ! Votre abonnement au plan{' '} <strong>{planName}</strong> est maintenant actif. </Text> <Text className="text-[14px] text-black leading-[24px]"> Date de début : <strong>{subscriptionStartDate}</strong> </Text> <Text className="text-[14px] text-black leading-[24px]"> Organisation : <strong>{organizationName}</strong> </Text> <Section className="my-[32px] text-center"> <Button className="rounded-md bg-[#000000] px-5 py-3 text-center font-semibold text-[12px] text-white no-underline" href={manageSubscriptionLink} > Gérer votre abonnement </Button> </Section> </Container> </Body> </Tailwind> </Html> ); }; export const SubscriptionPaymentSuccessES = ({ username, planName, organizationName, subscriptionStartDate, manageSubscriptionLink, }: SubscriptionPaymentSuccessProps) => { const previewText = `Tu pago por la suscripción ${planName} ha sido confirmado`; return ( <Html> <Head /> <Preview>{previewText}</Preview> <Tailwind> <Body className="m-auto px-2 font-sans"> <Container className="mx-auto my-[40px] max-w-[465px] rounded-xl border border-[#eaeaea] border-solid bg-white p-[20px]"> <Section className="mt-[32px]"> <Img src="https://intlayer.org/apple-touch-icon.png" width="40" height="37" alt="Intlayer" className="mx-auto my-0" /> </Section> <Heading className="mx-0 my-[30px] p-0 text-center font-normal text-[24px] text-black"> Pago Confirmado </Heading> <Text className="text-[14px] text-black leading-[24px]"> Hola {username}, </Text> <Text className="text-[14px] text-black leading-[24px]"> ¡Gracias por tu pago! Tu suscripción al plan{' '} <strong>{planName}</strong> ya está activa. </Text> <Text className="text-[14px] text-black leading-[24px]"> Fecha de inicio: <strong>{subscriptionStartDate}</strong> </Text> <Text className="text-[14px] text-black leading-[24px]"> Organización: <strong>{organizationName}</strong> </Text> <Section className="my-[32px] text-center"> <Button className="rounded-md bg-[#000000] px-5 py-3 text-center font-semibold text-[12px] text-white no-underline" href={manageSubscriptionLink} > Gestionar tu suscripción </Button> </Section> </Container> </Body> </Tailwind> </Html> ); }; const PreviewProps: SubscriptionPaymentSuccessProps = { username: 'John Doe', email: 'john.doe@example.com', planName: 'Pro Plan', organizationName: 'My Organization', subscriptionStartDate: 'November 20, 2024', manageSubscriptionLink: 'https://intlayer.org/manage-subscription', }; SubscriptionPaymentSuccessEN.PreviewProps = PreviewProps; SubscriptionPaymentSuccessFR.PreviewProps = PreviewProps; SubscriptionPaymentSuccessES.PreviewProps = PreviewProps;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server