One time payments & free trials in Chrome Apps
If you choose to charge users for your Chrome App, there are several options…
One time payments & free trials in Chrome Apps
If you choose to charge users for your Chrome App, there are several options
available to you. The Chrome Web Store has a built-in
one-time payment system called Chrome Web Store Payments. With one-time payments, you can also offer a free trial experience for your users.
The version that is published in the Chrome Web Store is not available for sale! This is to prevent people from accidentally purchasing a sample. When installed, the user will be issued with a FREE_TRIAL license. If you want to see the end to end flow, complete with the ability to purchase the app, you'll need to publish it in the store yourself and enable one time payments. See the documentation (https://developers.google.com/chrome/web-store/docs/payments-otp#using-otps) for full details.
To test with the version that is in the Chrome Web Store, you'll need
to add the the key below to your manifest:
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtqhlRmNTTzJXvfYcLEW9sTzOJzDxJr5M80XgolHc1EYdvjdg1/e4+fPadq3vAueArzwvEtFji2Ax4Aqo99kA1qYyw9ji8RdlUArvJCTIq/7xPMoMPWHCb3wPfZ7IYV4U6h841dUjrOng7yxN9RIYSLHPpqQG0tBSh3sx7pxjYWx6DxhxOlP9BAQ9W8McSaoI8Wy/4hCJb0k6hkGrD1q7mQIWODg7aF03+LvWuF+GNZJfVFU37w6IFo2bcmfJugW/Lu4oG4eYuYziWFXNfgnwaHyrA5MLPrQJ3jZKiETx1AzCClAyYKafkwKEXXhb0mA1H/fJf1ePfMWjT4Yj0E8SWwIDAQAB"
See the source code at https://github.com/GoogleChrome/chrome-app-samples/tree/master/one-time-payment
This version was built from git commit 1a6cf75 https://github.com/GoogleChrome/chrome-app-samples/tree/1a6cf75/one-time-payment