#abhilash_ss

1 messages · Page 1 of 1 (latest)

umbral sorrelBOT
#

Hello! We'll be with you shortly. 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.

zealous cedar
#

Hello

primal zealot
#

hey

zealous cedar
#

So first, that error would occur becuase you aren't setting a urlScheme in your <StripeProvider/> props

#

So let's start there

#

Then we can talk about deep linking

primal zealot
#

let me try that and let you know...thanks

zealous cedar
#

Sure

primal zealot
#

I passed a string value for the urlSchema and now it is redirected to the payment screen. But from there Safari throwing an error saying Safari cannot open the page because the address is invalid....May what would be the value expected for the urlSchema?

zealous cedar
#

You see this error in the Paypal screen after the Webview is opened?

primal zealot
#

yes

#

after clicking authorize payment

zealous cedar
#

Oh then yeah that is likely an issue with how you are handling your deep linking

#

Can you comment out all of your deep linking code for now and ensure the flow works without it first?

primal zealot
#

sure

#

Is this because of the urlSchema?

zealous cedar
#

What are you setting as your urlScheme?

primal zealot
#

only the app name

zealous cedar
#

That should be fine then

primal zealot
#

I am not sure how exactly that works and if I need to setup something for that

zealous cedar
#

Are you passing a returnURL to initPaymentSheet() ?

primal zealot
#

I am not using initPaymentSheet()
it is only direct call from the button click

zealous cedar
#

Ah

#

One min

primal zealot
#

okay

zealous cedar
#

I have only integrated through Payment Sheet and haven't done this direct integration yet. I'm checking with a colleague, give us a few

primal zealot
#

Sure..thanks

zealous cedar
#

Okay okay

#

So if you set your urlScheme to an HTTPS URL then you will be able to complete the flow end-to-end but you are redirected to that URL

#

If you do set that to a custom URL scheme then you are expected to handle deep linking

#

Otherwise you will see the current error

#

So yeah, test with setting to something simple like https://www.example.com and that should work fine.

#

Then you will need to work on your deep linking issue

primal zealot
#

okay..let me try and let you know

#

now it is redirecting to the URL I provided...thanks for the help...

#

I will try to check how properly setup the urlSchema for the app