#mindeggs-reactnative-ach

1 messages ยท Page 1 of 1 (latest)

loud jasperBOT
#

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.

candid ibex
#

Hey @sterile narwhal can you please ask a clear detailed question with all the context self contained so that I can help you?

sterile narwhal
#

There is an issue with re-direction for the banking but not for credit cards. I am not sure if I have do a special configuration for US bank payments

candid ibex
#

I don't think you have to as long as you set the right return URL in your code, did you do that?

#

card payments don't really redirect so that should be unrelated

sterile narwhal
#

Where do I set that?

#

Is it here? <StripeProvider
publishableKey="pk_test_..."
urlScheme="your-url-scheme"
merchantIdentifier="merchant.com.patshala"

#

But if it's a mobile app what would the URL be?

sterile narwhal
#

or is it when I am creating the payment intent?

candid ibex
#

mindeggs-reactnative-ach

sterile narwhal
#

what about android?

candid ibex
#

Are you on Android right now?

sterile narwhal
#

Yes

#

lol I am so lost

#

I don't know understand the apple docs either? Like where does this go? Is something being fed into my payment intent or payment sheet? Referrng to this part
` const handleDeepLink = useCallback(
async (url: string | null) => {
if (url) {
const stripeHandled = await handleURLCallback(url);
if (stripeHandled) {
// This was a Stripe URL - you can return or add extra handling here as you see fit
} else {
// This was NOT a Stripe URL โ€“ handle as you normally would
}
}
},
[handleURLCallback]
);

useEffect(() => {
const getUrlAsync = async () => {
const initialUrl = await Linking.getInitialURL();
handleDeepLink(initialUrl);
};

getUrlAsync();

const deepLinkListener = Linking.addEventListener(
  'url',
  (event: { url: string }) => {
    handleDeepLink(event.url);
  }
);

return () => deepLinkListener.remove();

}, [handleDeepLink]);`

versed kindle
#

๐Ÿ‘‹ hopping in here to take a look as well - give me a few minutes to catch up and try and reproduce what you're seeing with the return url/redirection

#

Yup, i can easily reproduce - looks like it's something specific to expo that's messing with the redirect. Let me see what we've suggested in the past to fix it..

sterile narwhal
#

thank you

loud jasperBOT
candid ibex
sterile narwhal
#

stepping away for 40 minutes

versed kindle
#

Trying some other things, but I may need to pull in some other folks as well

versed kindle
#

Quick question - are you using Expo Go or are you using a development build?

sterile narwhal
#

Expo app, it's a dev build

#

So I added this url to my Stripe Provider component. The results aren't perfect but eventually it gets me back to my app. <StripeProvider publishableKey="pk_test_..." urlScheme='exp://192.888.88.88:8081/--/' merchantIdentifier="merchant.com.patshala" >

#

192.888.88.88:8081 is my pretend IP address

versed kindle
#

can you clarify what you mean by "eventually gets me back to my app"

sterile narwhal
#

Okay I will show you all the steps. It's not technically a fix, just getting us closer.

#

I am having trouble connecting my phone to discord

#

so after I get to the page I select Test Institution, it goes to a connecting page, then it kicks out of the app to the expo app

#

When I go back on phone I can continue the process. I am directed to the select an account page

#

So the failiure is when it's connecting to the test institution

versed kindle
#

When I go back on phone I can continue the process. I am directed to the select an account page
I'm guessing you mean after reselecting your specific app it takes you to the right "select an account" page?

sterile narwhal
#

yes

versed kindle
#

Yeah, I'm in the same state - it kicks back to the main expo app and I can switch back to my app to finish the process

#

I'm just trying to narrow down what's missing to get it to kick back to your app

sterile narwhal
#

yeah, that's it

#

Thank you for helping with this, really appreciate it

loud jasperBOT
sterile narwhal
#

there's this value but it doesn't do much setReturnUrlSchemeOnAndroid: true,

versed kindle
#

Yeah, I've got the same thing and it doesn't seem to have much effect ๐Ÿ˜ฆ

last adder
#

๐Ÿ‘‹ we might need more time to look closely into this. Could you write into Support and mention this thread to turn it into an email conversation? We would be happy to follow up there