Intent to Prototype: Digital Goods API v2.1

58 views
Skip to first unread message

Rouslan Solomakhin

unread,
Jan 26, 2022, 4:37:28 PMJan 26
to blink-dev

Contact emails

rou...@chromium.org, gle...@chromium.org


Explainer

https://github.com/WICG/digital-goods/blob/main/explainer.md#api-v21


Summary

We are implementing behind a flag a non-breaking addition to the existing Digital Goods API. This change:

  • Adds to DigitalGoodsService:

    • Promise<sequence<PurchaseDetails>> listPurchaseHistory();

  • Adds to ItemDetails:

    • ItemType type;

    • sequence<DOMString> iconUrls;

    • unsigned short introductoryPriceCycles;

  • Adds enum ItemType.


Use of the new methods/fields will require developers to update supporting code in their apps, such as Android Browser Helper.

Motivation

Missing functionality compared to the existing store APIs.


Risks

Interoperability and Compatibility

Similar to Payment Request: this API is used to talk to specific store backends, and so its usage is tailored to the specific store. The reason it's a proposed web standard is so that the same code (which is specific to one store) is portable across browsers.


Gecko: No signal (https://github.com/mozilla/standards-positions/issues/349) Requested 2020-05-27.


WebKit: No signal (https://lists.webkit.org/pipermail/webkit-dev/2021-October/032001.html) Requested 2021-10-08.


Web developers: Positive (https://discourse.wicg.io/t/proposal-web-payments-digital-product-management-api/4350).


Other signals: rouslan@ presented DGAPI at 2021 TPAC (meeting notes) and at a recent PWA Dev Sync (meeting notes). Other browser implementers and app stores do not appear to have immediate plans to engage with DGAPI. There were some questions, no objections.


Ergonomics

Used in tandem with the Payment Request API.



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

No. DGAPI is currently available only on Chrome OS and Android.


Tracking bug

https://crbug.com/1250604


Estimated milestone

101


Link to entry on the feature dashboard

https://chromestatus.com/feature/5339955595313152


Requesting approval to ship?

No


Links to previous Intent discussions

Intent to prototype 1.0:

https://groups.google.com/a/chromium.org/g/blink-dev/c/vkS3k30lWNs.

Intent to experiment 1.0:

https://groups.google.com/a/chromium.org/g/blink-dev/c/syI9_M9dANY/m/3lt-QGMHAgAJ.

Intent to continue experimenting 1.0:

https://groups.google.com/a/chromium.org/g/blink-dev/c/uoTx_cRuL5o.

Intent to experiment 2.0:

https://groups.google.com/a/chromium.org/g/blink-dev/c/wIYqo3F_Vmo/m/uKw6hDa8BgAJ.


Reply all
Reply to author
Forward
0 new messages