From 3366ad807ffe53533b3d103b77c567ec92208f69 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Mon, 16 Oct 2023 11:08:32 +0100 Subject: [PATCH] Testing more stuff --- src/components/PricingTable.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/PricingTable.tsx b/src/components/PricingTable.tsx index 06e47f5..4354ae8 100644 --- a/src/components/PricingTable.tsx +++ b/src/components/PricingTable.tsx @@ -2,13 +2,17 @@ import {Elements} from "@stripe/react-stripe-js"; import {loadStripe} from "@stripe/stripe-js"; +import {useEffect} from "react"; const stripePromise = loadStripe("pk_test_51NzD5xFI67mXFum2XDMXiLu89SbCAMY5O0RnKjlU6XqyfboRVvFHI3f5OJHaxsrjjB7WqDYqN7Y3eF8mq3sF354F00l30L5GuJ"); export default function PricingTable() { + useEffect(() => { + console.log(process.env.NEXT_PUBLIC_STRIPE_PRICING_TABLE, process.env.NEXT_PUBLIC_STRIPE_KEY); + }, []); + return ( - {/** @ts-ignore */} ); } + +// If using TypeScript, add the following snippet to your file as well. +declare global { + namespace JSX { + interface IntrinsicElements { + "stripe-pricing-table": React.DetailedHTMLProps, HTMLElement>; + } + } +}