Apple Pay as Payment Requests not working

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Gateways Stripe Apple Pay as Payment Requests not working

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #50612
    Nguyen
    Participant

      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!

      #50636
      Olly
      Admin & Mod

        nothing 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 ?

        #50643
        Nguyen
        Participant

          Nothing 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.

          #50692
          Olly
          Admin & Mod

            >Site is not in debug mode.
            then you should turn it on
            https://docs.wp-pizza.com/troubleshooting/

            #50693
            Olly
            Admin & Mod

              also, 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)

              #50695
              Nguyen
              Participant

                Hi 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.

                #50699
                Olly
                Admin & Mod

                  may 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 )

                  #50700
                  Nguyen
                  Participant
                    This reply has been marked as private.
                    #50704
                    Olly
                    Admin & Mod

                      thanks.

                      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)

                      #50705
                      Olly
                      Admin & Mod

                        PS: 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.

                        #50837
                        Nguyen
                        Participant
                          This reply has been marked as private.
                          #50851
                          Nguyen
                          Participant

                            Hi 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!

                            #50861
                            Olly
                            Admin & Mod

                              ok, i’ll have to check and will post back here when i know more

                              #50870
                              Olly
                              Admin & Mod
                                This reply has been marked as private.
                                #50886
                                Nguyen
                                Participant

                                  Hi,
                                  a) yes payment requests and main Stripe pay Option is activate.
                                  B) just try with iPhone and cause same issue like my site.

                                  #50905
                                  Olly
                                  Admin & Mod

                                    ok, 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 what

                                    IntegrationError: 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)

                                    #50906
                                    Olly
                                    Admin & Mod
                                    Viewing 17 posts - 1 through 17 (of 17 total)
                                    • The topic ‘Apple Pay as Payment Requests not working’ is closed to new replies.