#cbol-react-iframe

1 messages ยท Page 1 of 1 (latest)

royal heath
#

Hello ๐Ÿ‘‹
How and where are you initializing stripe in your app?

violet delta
#

I have a Stripe wrapper component:

export default function StripeWrapper(props) {
  const stripePromise = loadStripe(process.env.REACT_APP_STRIPE_PK, {
    locale: props.localeId === "frCa" ? "fr-CA" : "en",
  });
  return (
    <Elements stripe={stripePromise}>
      <SubscribeForm
        createSubscription={props.createSubscription}
        cancel={props.cancel}
        translate={props.translate}
      />
    </Elements>
  );
}

I use this component inside my Subscription component.
The Subscription component is loaded using react router when you access a specific URL.

#

Even if I go to the home page of the site in a fresh browser, I will see a Stripe iframe:

ashen solstice
#

๐Ÿ‘‹ I'm hopping in! Give me a few minutes to take a look

violet delta
#

Hi! take your time, you guys being available to help is so great, I'm not in a hurry.

ashen solstice
violet delta
#

I will have a look, never seen this before. Thank you!