coderef

Digital goodsLimited availability

The window.getDigitalGoodsService API connects to stores or billing services for in-app products and subscriptions.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
✕Not supportedup to 155
Current: 155
Edge
12–133Not supported
134+Supportedsince Mar 6, 2025
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–100Not supported
101+Supportedsince Apr 26, 2022
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Chrome, Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN — see the links below.

Feature detection

JS · check before using
if ("Window" in globalThis && "getDigitalGoodsService" in Window.prototype) {
  // Window.getDigitalGoodsService is available
}