WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Gateways › Stripe › Apple Pay as Payment Requests not working
- AuthorPosts
- 9 August, 2020 at 7:34 am #50612
Hi Olly,
can you check please. If Apple Pay set as Payment Request Button don’t work more since 7 days. Apple Pay with redirect to Stripe Screen will work fine.
thanks for help!9 August, 2020 at 11:01 pm #50636nothing has changed there for months, so the question is, what has changed on your site 7 days ago ?
have you enabled debug ? did you check your browser console ?10 August, 2020 at 7:48 am #50643Nothing was change on my site. I already reinstall Stripe plugin but it still not work. Site is not in debug mode. http://www.daikychi.de is my site. Browser consonle don’t show error.
10 August, 2020 at 1:48 pm #50692>Site is not in debug mode.
then you should turn it on
https://docs.wp-pizza.com/troubleshooting/10 August, 2020 at 2:10 pm #50693also, have you checked that your domain association file (still) exists ?
as per setup instructions here
https://www.wp-pizza.com/downloads/wppizza-stripe-gateway/
(and in particular here https://stripe.com/docs/stripe-js/elements/payment-request-button -> verify your domain with apple)11 August, 2020 at 7:22 am #50695Hi Olly,
thanks for message. I have enable debug mode now and get this after click on send order by payment request.[Error] IntegrationError: show() must be called from a user gesture handler (such as a click handler, after the user clicks a button).
(anonyme Funktion) (v3:1:29112)
(anonyme Funktion) (scripts.js:1:2451)
q (scripts.min.js:1:19173)
(anonyme Funktion) (scripts.min.js:1:18557)
i (jquery.js:2:27368)
fireWith (jquery.js:2:28123)
(anonyme Funktion) (jquery.js:2:28802)
i (jquery.js:2:27368)
fireWith (jquery.js:2:28123)
x (jquery.js:4:22587)
c (jquery.js:4:26778)and Association file still exist, i can add my domain in stripe dashboard.
11 August, 2020 at 1:16 pm #50699may i see the output of wppizza->tools->system info please (you can mark the reply as private if you wish, but not strictly necessary really )
11 August, 2020 at 7:47 pm #50700This reply has been marked as private.12 August, 2020 at 12:16 am #50704thanks.
a couple of things though
a) debug is NOT enabled in your configuration
b) I have double checked this here one of my servers and the apply pay request works just fine (still)
c) i would suggest you enable debug as mentioned , disable all other plugins and switch to a default theme (twenty-something)
and see if you still have an issue (if this is a live site, you probably want to do this during times you are closed and go to wppizza->tools to open the shop for your ipaddress/userid so you can check things)It is still most likely that something changed your end 7 days ago (things dont just stop working if everything stays as it is) , but this might also have been something that happened on your server somewhere of course without your knowledge and not in your wordpress install itself
let me know what your debug log says if anything – and/or indeed if disabling plugins/switching themes will at least make this work again for you for a start (so we know where to look)
12 August, 2020 at 12:19 am #50705PS: while this is not working for you and we are trying to narrow down the issue i would perhaps suggest you disable the “payment request” option . AFter all, when redirecting to Stripe for checkout , apple pay is already integrated there anyway if available.
22 August, 2020 at 1:18 pm #50837This reply has been marked as private.23 August, 2020 at 6:55 am #50851Hi Olly,
unbelievable but i found out the issue! the Pre Order Extension cause this problem. If i disable Pre Order the payment request run normally. Now i can remember that i have update the Pre-Order to 3.3.1.Please update!
Thanks!
24 August, 2020 at 2:32 am #50861ok, i’ll have to check and will post back here when i know more
24 August, 2020 at 2:35 pm #50870This reply has been marked as private.24 August, 2020 at 3:21 pm #50886Hi,
a) yes payment requests and main Stripe pay Option is activate.
B) just try with iPhone and cause same issue like my site.25 August, 2020 at 2:28 pm #50905ok, I’ve been digging around a bit and I’m not sure if this is even doable having ApplePay payment requests AND the preorder plugin at the same time (other than *redirecting* to stripe where apple pay is integrated automatically anyway)
from what i can see apple (unlike google payrequests!) *requires* that a button gets distinctly clicked before the payment request is being actioned.
which is whatIntegrationError: show() must be called from a user gesture handler
is all about
however, what happens with the preorder plugin is that when someone clicks on “buy now” button (or whatever it will be called) it first of all checks one last time if the selected timeslot is actually still available as someone might have been staying on the order page for ages – and only if this is still a valid timeslot , will the applypay option be triggered automatically.
(same goes for stockmanagement as it happens)i.e the chain of events is:
click button, script checks timeslot and/or stocklevel availability, if ok show apple pay. (if not ok, show an alert to the effect that timeslot expired, out of stock or whatever is appropriate)apple seemingly does not allow for this i.e the show() event *must* be triggered directly by clicking on a button and cannot be triggered programatically .
*Maybe* there’s a way around this , but knowing apple I’m not hopeful so cannot really promise anything on that front at the moment I’m afraid… 🙁
(other than suggesting that if you MUST offer apple pay AND want to use the preorder and/or stockmnagemnt plugin you have to use the default stripe->redirect option)
25 August, 2020 at 2:35 pm #50906Some more info here
https://github.com/stripe/react-stripe-elements/issues/335 - AuthorPosts
- The topic ‘Apple Pay as Payment Requests not working’ is closed to new replies.