#sainita_code

1 messages ¡ Page 1 of 1 (latest)

urban houndBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1257356289881935902

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

dusky cragBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

dapper ravine
#

Hello

#

You test Google Pay and Apple Pay by putting a real card in your wallet and then as long as you are in test mode that real card is swapped out for a test card during the flow.

#

You can't use the Stripe test cards in your wallet to test here

charred frost
#

If I use any live card then i get "Request timeout "error

dapper ravine
#

Then that is an integration error

#

Are you calling confirmPayment() at the end of your flow?

charred frost
#

But it was working earlier when I was using 4111111..

#

Yes

dapper ravine
charred frost
#

Yes. I was redirected to a return url where I saw the redirect status payment intent and secret

dapper ravine
#

Okay so then yeah that indicates there is some integration error occurring

#

Is there somewhere I can visit to reproduce the error you are seeing?

charred frost
#

this is the url where I have added the button

#

we don't need this return url anymoreas we have some intermediate process

#

After the updation in redirect parameter, when I am unable to test

dapper ravine
#

If you look in your console there is an integration error

#

IntegrationError: stripe.confirmPayment(): the `confirmParams.return_url` argument is required when using automatic payment methods.

charred frost
#

Please ignore the 404 message in my screenshot as this url was not present. We just wanted to test the process so added this demo url. Now, it's been replaced with redirect:if_required

dapper ravine
#

So the above is your issue

#

You still have to set a return_url

#

Even if you using redirect: 'if_required'

charred frost
#

Ok. If I set that url, will it be redirected? because, we can't redirect directly without the intermediate process

dapper ravine
#

Not unless a payment method type which requires a redirect is used.

#

So if you are only supporting Google Pay here then no, that redirect will never occur.

charred frost
#

We are going to add "apple pay also

#

Will it cause?

dapper ravine
#

Same with Apple Pay

#

Neither of those require a redirect

charred frost
#

Ok, then we just need to add this return url . But it won't be used

dapper ravine
#

That shows a requires redirect column

charred frost
#

Ok. I will update it then. Thanks