MCPcopy Create free account
hub / github.com/Source-Controller/eCommerce-Fullstack / getStripe

Function getStripe

lib/getStripe.js:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3let stripePromise;
4
5const getStripe = () => {
6 if(!stripePromise) {
7 stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_KEY);
8 }
9
10 return stripePromise;
11}
12
13export default getStripe;

Callers 1

handleCheckoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected