Comments (3)
@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.
@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.
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)
- [BUG]: TypeError "stripe is null" HOT 2
- [BUG]: Warnings Reported In the Console over Content Security Policy HOT 5
- [BUG]: Stripe.js Attempting to JSON.parse '[object Object]' HOT 2
- [BUG]: `CardElement` conditional rendering triggers "IntegrationError: We could not retrieve data from the specified Element." HOT 7
- [BUG]: Error when paying with cashapp HOT 2
- [BUG]: Invalid initEmbeddedCheckout(options) parameter: locale is not an accepted parameter. HOT 1
- [BUG]: type regression with moduleResolution: bundler HOT 3
- [BUG]: Types are very incorrect in the package now in 3.x HOT 20
- [BUG]: Google's third party cookies HOT 7
- [BUG]: compile error: loadStripe isn't found in @stripe/stripe-js/pure as of 3.0 HOT 13
- [BUG]: Missing type ConfirmCashappSetupOptions in "@stripe/[email protected]" HOT 3
- > we pick things up alphabetically HOT 1
- [BUG]: Possible mismatched types between regular and pure HOT 3
- [BUG]: TypeScript error on Elements options HOT 3
- [BUG]: Uncaught Error Error: Frame not initialized when using React StrictMode HOT 1
- [BUG]: Google Pay PaymentRequestButtonElement subscribe HOT 2
- [BUG]: Problem type with loadStripe HOT 4
- [BUG]: build error HOT 4
- [BUG]: onComplete does not trigger when using fetchClientSecret in Stripe's initEmbeddedCheckout HOT 1
- [BUG]: StripeElements defaultValues aren't working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-js.