Google Pay

Dear Lazyweb, there seem to be two different Google Pay APIs. Which should I use? PaymentsClient seems to describe a Google-specific API, and PaymentRequest seems to describe a W3C API that Google plugs in to.

Also, does Google Pay work in desktop macOS Chrome, if you do not own a physical Android device? What about in desktop Safari?

Previously.

Tags: , , , ,

6 Responses:

  1. Paul Fisher says:

    PaymentRequest is the standard Web API and works on desktop as well (having used it to check out on both Windows and Linux). On Safari it should show Apple Pay. You can test for yourself and see what it looks like at a this PaymentRequest demo

    • jwz says:

      Interesting. If I had known about that I would have been tempted to do Apple Pay that way -- except that that demo says canMakePayment → false on both desktop Safari 10.14.6 and on my iPhone, both of which work with Apple Pay.

    • eSyr says:

      On Firefox it shows "Sorry - Not Available on this Browser // Unfortunately the PaymentRequest API isn't available in your browser. Why not try this on Chrome for Android?". So much for vendor neutrality.

Leave a Reply

Your email address will not be published. But if you provide a fake email address, I will likely assume that you are a troll, and not publish your comment.

You may use these HTML tags and attributes: <a href="" title=""> <b> <blockquote cite=""> <code> <em> <i> <s> <strike> <strong> <img src="" width="" height="" style=""> <iframe src="" class=""> <video src="" class="" controls="" loop="" muted="" autoplay="" playsinline=""> <div class=""> <blink> <tt> <u>, or *italics*.