I have an web app in development to which I am trying to add Google Play Billing on Android and Chrome OS. My implementation is basically the same as in Google's own documentation, however it fails at the point of acknowledging the purchase after it completes, throwing TypeError: service.acknowledge is not a function. Everything else works fine, but not being able to acknowledge the purchase means Google Play automatically reverses it after a period of time.
service.acknowledge is undefined using Digital Goods API with Google Play in TWA
219 Views Asked by Zachary Yaro At
1
There are 1 best solutions below
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in GOOGLE-PLAY
- how to Delete app bundle from play store in 2024?
- Как подтвердить свой адрес в Google Play Console в Беларуси?
- Flutter app ANR bad behavior in Play Store
- App is not visible after after full rollout on google play store
- Google Play Scraper reviews_all is inconsistent
- App removed from google play store because of MANAGE_EXTERNAL_STORAGE
- React Native Expo published app not displaying logo properly
- Android Managed Google Play Console
- Debugging MAUI issues from android playstore Crash details stacks
- Play Billing Library prevents uploading my App
- Doesn't work closed testing links for Play Console
- ou have imported an APK or an app bundle signed with a certificate that is not yet valid You must sign either with a valid certificate
- I couldn't verify my identity in Google Play console even though I used my passport and ID card
- "High Risk Behavior" mark on Google Play
- Google Warning: There is no deobfuscation file associated with this App Bundle
Related Questions in PROGRESSIVE-WEB-APPS
- Stopwatch loosing time in a browser using blazor and web assembly when browser put in background
- Can Angular minify, compress and remove unused JS and CSS files on build?
- Badge Not Displayed on iOS PWA Despite Receiving Push Notifications
- Why is it impossible to definitively know if your website is running as a PWA or as a website?
- Venia pwa + magento 2 categories and products issue
- Problem when executing the bubblewrap build command
- Is there a configurable way to batch workbox-background-sync requests in vite-pwa plugin
- Is it possible to make my web app work both server-side only and client-side only?
- Specifications on Google Chrome's Cache Management and Portability Across Devices
- Failed to load resource: the server responded with a status of 404 () index12312.js
- Middleware redirecting creates an errors. PWA app, NextJS 14, App router
- Data path "" must NOT have additional properties(ngswConfigPath)
- PWA configured with vite-plugin-pwa errors - manifest not found
- IOS pwa start_url doesn't dynamically changes
- Angular build for subfolder
Related Questions in TRUSTED-WEB-ACTIVITY
- TWA app crash because of java.lang.ClassNotFoundException: Didn't find class "androidx.browser.trusted.LauncherActivity"
- Call to Javascript "alert()" causes un-dismissible URL bar to appear
- SOLVED - App links are working only when opened from outside of Android TWA application
- Trusted Web Activity - Google Chrome not shows the "access to camera and microphone" prompt after version 122
- PostMessage demo code for Trusted Web Activity doesn't work
- Implementation of PostMessage for TWA android application
- PWABuilder TWA: Clicking Android Web-Push Notification Won't Bring App to Foreground (Service Worker Click Handler Running)
- How can I set custom user-agent or custom header in a Trusted Web Activities (TWAs) app which is built using pwabuilder.com website?
- ERROR Command failed: gradlew.bat assembleRelease --stacktrace
- Adding AdMob to code generated from PWA Builder
- TWA shows address bar but assetlink is correct
- Bubblewrap build command fails with a java class not found exception
- Are google play billing subscription base plans supported in bubblewrap twa?
- TWA: create twa for specific routes
- URL header appears in my TWA when Javascript Alert or Confirm box appears
Related Questions in PAYMENT-REQUEST-API
- how to store critical data on PaymentRequest API
- Stripe: Failed to execute 'postMessage' on 'Window': Delegation is not allowed without transient user activation
- What is the google pay equivalent of Apple Pay canMakePayments() method?
- Facing issues while implementing google API to Angular
- Payment request button via Stripe does not work when add shipping address
- Card payments with the Payment Request API not working
- service.acknowledge is undefined using Digital Goods API with Google Play in TWA
- GooglePay Error: "Must be in a top-level browsing context or an iframe needs to specify 'allowpaymentrequest' explicitly"
- Payment Request API: Getting the buyer's address
- Apple Pay integration with Angular
- Unable to get any response from the apple pay - This resource came from a local override
- how to apple pay through stripe in VJs?
- Current list of supportedMethods for the W3C PaymentRequest API
- TypeError: Object is not a constructor (evaluating 'new PaymentRequest(METHOD_DATA, DETAILS)')
- Firefox - ReferenceError: PaymentRequest is not defined
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Apparently that is because they changed the API and just have not yet updated that page of documentation. Apparently
service.acknowledgewas removed, and they now require passing the purchase token to your own back-end, and then having that call the Google Play Developer API to acknowledge the purchase.Unfortunately, that does not seem likely to change, so options like Cordova continue to be the best option for client-only web apps with in-app purchases for the moment.