You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error in /checkout page. I have configured test stripe public key as well as secret in medusa admin.
Can you please look into this? Thanks!
The text was updated successfully, but these errors were encountered:
I came across this issue as well. From my understanding it happens when the stripe component is remounted incorrectly, caused by the implementation of the stripe react package.
I ended up fixing it by adding the key prop to the Elements component inside StripeWrapper in storefront/src/modules/checkout/components/payment-wrapper/index.tsx:
constStripeWrapper: React.FC<WrapperProps>=({ paymentSession, children })=>{constclientSecret=paymentSession!.data.client_secretasstring|undefined;constoptions: StripeElementsOptions={
clientSecret
};return(<Elementsstripe={stripePromise}options={options}key={clientSecret}>{children}</Elements>);};
Getting this error in /checkout page. I have configured test stripe public key as well as secret in medusa admin.
Can you please look into this? Thanks!
The text was updated successfully, but these errors were encountered: