#kevin_code

1 messages ยท Page 1 of 1 (latest)

somber sparrowBOT
#

๐Ÿ‘‹ 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.

night creek
#

hi there!

dusty stone
#

Hi ๐Ÿ˜„

night creek
dusty stone
#

Oh my bad thank you I'll try this and come back to you after trying it if I succeeded or failed ๐Ÿ™‚

night creek
#

no worries and happy to help ๐Ÿ™‚

somber sparrowBOT
bleak thistle
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

dusty stone
#

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=pending but I don't use them because I can get the paymentIntent from the confirmPayment like 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 ๐Ÿ˜„