Open monstermac77 opened 1 year ago
Turns out we had missed one part of the documentation: we had to #enable-debug-for-store-billing
on our Android device. Probably would be better if the error message in this case were more specific than The payment method "https://play.google.com/billing" is not supported.
.
@rsolomakhin would it be simple enough to add an extra message to the error response in findAppStoreBillingApp() if it fails to find a valid app and WEB_PAYMENTS_APP_STORE_BILLING_DEBUG is disabled? There is already an error message response in AreRequestedMethodsSupportedCallback() but it's a bit hard to follow due to the callback spaghetti.
We've been stuck for days trying to implement Google Play Billing in our TWA. We have experience with Billing, having implemented it on our native Android app, but we just can't seem to get past this error.
We've been following this guide to a T, but upon trying to make a new
PaymentRequest
, we receive the the following error:We've ensured ensured
"playBilling": {"enabled": true}
is in our manifest.json, which would be the most likely culprit. We've cleared Chrome's cache/storage, etc. And in general, it seems like our TWA is configured correctly, as everything else seems to work and there is no URL bar displayed at any point in the app's lifecycle.What could be the problem here? One of the only people we've seen run into this issue was here, but they had the URL bar showing which led them to discover their
assetlinks.json
was incorrect, whereas there's no indication that ourassetlinks.json
is wrong. Code is below.