Giter Site home page Giter Site logo

PaymentRequest Type about stripe-js HOT 3 CLOSED

stripe avatar stripe commented on August 20, 2024
PaymentRequest Type

from stripe-js.

Comments (3)

hofman-stripe avatar hofman-stripe commented on August 20, 2024

@klase sorry for the delayed response. Currently if not Apple Pay, Stripe's PaymentRequest object simply wraps the browser's PaymentRequest API. Because browsers have strict rate limiting in place to prevent fingerprinting, we can only determine if the browser has any of Google Pay or basic card (including "Microsoft Pay") configured, but not which one. This is something we're working with Google and standards groups to improve.

See https://chromestatus.com/feature/6014793655779328

from stripe-js.

klase avatar klase commented on August 20, 2024

@hofman-stripe If you are able to determine that the source is Google Pay, how is this exposed in stripe-js? We use the "applePay" flag to customise the payment button according to Apple's guidelines, so it would be really helpful from a UX standpoint to also have this ability for Google Pay while we wait for the standards to improve.

from stripe-js.

hofman-stripe avatar hofman-stripe commented on August 20, 2024

Sorry maybe I wasn't clear. We are not currently able to differentiate between GPay and basic card using the browser PaymentRequest API, only that "at least one" is available. That's also the reason the PaymentRequestButton doesn't have any dedicated branding for GPay. We are looking at different ways to improve this situation, but that's unfortunately a limitation of browser APIs.

from stripe-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.