Apple Pay Stuck in Processing before onpaymentauthorized

I'm running into a very perplexing bug with an Apple Pay on the Web implementation that is only happening during development on my local machine. After putting in my fingerprint when prompted to "Pay with Touch ID", the onpaymentauthorized event handler is never triggered. The touch bar on my mac shows "Processing" but the paysheet UI does not update with a spinner, I get no errors, and the event mentioned above does not fire. I'm stuck in this state unless I move focus to another application or cancel the session.

Like I mentioned, this is only happening on my local machine and does not in other environments. I've run into this several times and have tried some general solutions such as restarting, signing out of my icloud account, etc. I've also tried switching to using my password to authorize payment instead of fingerprint with no luck. Usually it resolves itself randomly after I try again the next day or so.

Would anyone have any thoughts on why something like this could be happening? Thanks

Usually it resolves itself randomly after I try again the next day or so.

Having an issue like this randomly resolve itself suggests that there is an environmental factor causing this issue. I would double check the testing account you are using again and also check to make sure that your payment session is successfully going through on the server side. Verify that you can successfully perform the client authentication and communicate with the Apple Pay servers from your servers and if you are running into issues make sure to double check your server side logs.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Apple Pay Stuck in Processing before onpaymentauthorized
 
 
Q