#kevin_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1269937672454013082
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
Hi ๐
I think you are missing this step: https://docs.stripe.com/payments/accept-a-payment?platform=react-native#react-native-set-up-return-url
Oh my bad thank you I'll try this and come back to you after trying it if I succeeded or failed ๐
no worries and happy to help ๐
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
Hello, so now I have more an interrogation, I use the promise await handleURLCallback(url); to handle the URL and now it works perfectly fine
- I'm on payment page
- I choose PayPal
- The browser opens and I accept the payment on the test page
- With the deeplink I got back on my payment page with the new query params
payment_intent=abcde/payment_intent_client_secret=abcde/redirect_status=pendingbut I don't use them because I can get thepaymentIntentfrom theconfirmPaymentlike this
const { error, paymentIntent } = await confirmPayment(clientSecret, {
paymentMethodType: 'PayPal',
paymentMethodData: {
mandateData: {
customerAcceptance: {
online: {
ipAddress: 'IP',
userAgent: 'userAgent',
},
},
},
},
});
Is it okay to do it the same way I do in Android or should I really use the payment intent from the query params?
Thank you ๐
For now it's the last question, I might ask another question later if I have trouble to migrate to PaymentElement ๐