Glen

Results 24 comments of Glen

Just an idea: would it be helpful if you could get a dummy Digital Goods service object where all the methods returned no data?

Re: https://github.com/PEConn/beer - no, it needs to be in a TWA context (installed from the Play store) to work with the Play payment method. The CrOS and Android backends rely...

> The getDigitalGoodsService method should exist on any https site if you have the "Experimental Web Platform Features" flag on in your browser **or** if the site has a valid...

Yes, https + "Experimental Web Platform Features" flag are the requirements for the method to exist. But it won't return a Play-backed DG service instance unless you're in a TWA...

@MrVibe this API is still in Origin Trial. You can test locally by enabling Chrome flags as mentioned in [the chrome dev article](https://developer.chrome.com/docs/android/trusted-web-activity/receive-payments-play-billing/) or you can [sign up for the...

Note for this issue: perhaps we can provide more fine-grained exception messages here? "Unsupported context" means that something is wrong with your app (TWA) context. Either you're not in Android/CrOS...

It is still expected to work. You need to be on an HTTPS page on Android or ChromeOS for getDigitalGoodsService to be available.

Can you show what the JS console output is when you run the above code? What is the value of the `data` variable when you call `setSrv(data)`

@rsolomakhin would it be simple enough to add an extra message to the error response in [findAppStoreBillingApp()](https://source.chromium.org/search?q=findAppStoreBillingApp&sq=package:chromium) if it fails to find a valid app and WEB_PAYMENTS_APP_STORE_BILLING_DEBUG is disabled? There...

I've updated the first code snippet in the explainer to clarify the code side of this a bit. The very first step of using the API is to detect if...