Skip to content

Commit a40330e

Browse files
committed
stripePromise to string
1 parent 02fbdcc commit a40330e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/checkout.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import { useSession } from "next-auth/client";
99
import banner from "../public/prime_banner.jpg";
1010
import { loadStripe } from "@stripe/stripe-js";
1111
import axios from "axios";
12+
console.log(typeof (process.env.STRIPE_PUBLIC_KEY))
13+
const stripePromise = loadStripe(String(process.env.STRIPE_PUBLIC_KEY));
1214
// const stripePromise = loadStripe(process.env.STRIPE_PUBLIC_KEY.toString());
13-
const stripePromise = loadStripe(process.env.STRIPE_PUBLIC_KEY.toString());
1415

1516
function Checkout() {
1617
const items = useSelector(selectItems);

0 commit comments

Comments
 (0)