#dangthanhtuan1997

1 messages · Page 1 of 1 (latest)

urban lagoonBOT
hearty kelp
#

Hi there. Are you using a plugin to integrate Stripe?

#

Or is this all your code?

drowsy agate
# hearty kelp Or is this all your code?

Vợ Iu ❤️, [29 Jan 2024 at 21:50:51]:
...mport { Elements, LinkAuthenticationElement, PaymentElement, useElements, useStripe } from '@stripe/react-stripe-js';

<LinkAuthenticationElement options={{ defaultValues: { email: email?.trim() || '' } }} />

<PaymentElement
id='payment-element'
options={paymentElementOptions}
onChange={element => {
paymentTypeRef.current = element?.value?.type || PAYMENT_TYPE.STRIPE;
if (element.complete && paymentError) {
setCheckoutStage(CheckoutStage.INITIAL);
clearPaymentError();
}
setFormValid(element.complete);
}}
/>

#

This is what I use

hearty kelp
#

Got it so it's your code

#

Instead of refreshing and logging back in, have you tried just waiting a minute or so?

#

It may just take some time to propagate

drowsy agate
#

I tried waiting more than 1 minute but it still doesn't update

hearty kelp
#

Hm ok

#

So in the above video it looks like logging out and back in actually didn't help

#

The 3rd payment method still isn't in that list, right?

drowsy agate
#

that 's right

#

Sometimes when I reload the page and enter the code, I see that card

urban lagoonBOT
hearty kelp
#

Got it. Sorry I'm not super familiar with this flow, but my colleague said they'd be able to take a look here in a minute

remote tree
#

👋 stepping in here

#

We tried to reproduce this issue and we couldn't do so from our end. The next best step is for you to write into our Support team with a details explanation of what is happening (that video is very helpful) and to share all of your relevant code in that email so that we can investigate further.