Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment Request API - it should be mentioned that dom.payments.request.supportedRegions should contain your country #3164

Closed
ashucg opened this issue Dec 3, 2018 · 2 comments
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@ashucg
Copy link

ashucg commented Dec 3, 2018

I was trying the API and window.PaymentRequest was returning undefined, but thanks to caniuse I came to know about dom.payments.request.supportedRegions config and on adding my country's code, i.e., IN, PaymentRequest finally worked.

I believe that it must be mentioned on MDN as well, because if I am using MDN, I am expecting it to contain all the information I need to try new APIs

@ddbeck
Copy link
Collaborator

ddbeck commented Dec 3, 2018

Huh, this is an interesting issue! I looked into it and bug 1501102 seems to show that before Firefox 65 the only supported region was California. We probably need to document the pref on 65+ and add a note for the existing 55 entry.

@ddbeck ddbeck added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Dec 3, 2018
@queengooborg
Copy link
Collaborator

Closing this as #3096 seems to have already added the supportedRegions preference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

3 participants