#jake-epping_paypal
1 messages ยท Page 1 of 1 (latest)
๐ 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/1253267915923390558
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
What you mean exactly by it doesn't work?
What happens in your integration ?
Did you tried to add log lines ?
I'm trying to do something after passing redirect_url. but all the code after the line with confirm payment doesn't work. I tried to add simple console.log there and saw nothing during the payment
it looks that after redirect nothing works
What you mean exactly by "redirect" ? Your website is redirected to another Url or what exactly ?
I mean passing return_url.
this block of code
Is there any log error in the console?
Did you tried to debug your js code by making break points and follow the process ?
no errors. Haven't tried breakpoints yet, just checked if something works after the code on the screen. So in your opinion it looks strange and code after payment confirmation should work?
It depends on the flow you are following, can't tell much at this point
Between What intergatino are you following ?
if you are using Direct API you should use this guide:
https://docs.stripe.com/payments/paypal/accept-a-payment?web-or-mobile=web&payments-ui-type=direct-api
The payment method you are creating has no sense (with just type paypal)
yeah, I follow this one. Will check this guide one more time and thanks for the information about creating payment method
You should remove the createPaymentMethod call and simply confirm the PaymentIntent by passing it's client_secret and a return_url
ok, I'll try
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
jake-epping_paypal
one more question. I can't see paypal button (express checkout element) in instagram and fb in-app browsers. Is something wrong from my side ot these browsers are not supported?
I think WebViews in general can have compatibility problems, I don't think there's much you can do here as you don't write the code for those WebView implementations
yeah, that's pity. thanks a lot
do you have any known issues with WebView and Express Checkout Element? Or I am the first with this problem?)
not sure off the top of my head
I know for instance Google Pay never works in Webviews; Apple Pay usually does but might not if using certain older implementations
there are a bunch of settings the app developer can apply that sandbox/remove JS features in the page inside the WebView
ok, thanks