https://github.com/namiml/nami-google-token-validator
Simple Python3 script to check a Google Play Billing purchase token with the Play Developer API
https://github.com/namiml/nami-google-token-validator
Last synced: 2 months ago
JSON representation
Simple Python3 script to check a Google Play Billing purchase token with the Play Developer API
- Host: GitHub
- URL: https://github.com/namiml/nami-google-token-validator
- Owner: namiml
- License: mit
- Created: 2021-08-26T17:08:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-05T00:12:36.000Z (over 3 years ago)
- Last Synced: 2025-03-16T01:16:37.849Z (2 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nami-google-token-validator
A simple Python 3 CLI for validating a Google Play Purchase Token via the Google Developer API.
To install the Google Developer APIs for Python:
```
pip install google-api-python-client
```### Purchase token is for a subscription purchase
```
./google_token_validator.py /path/to/google_service_credentials.json [package_name] [product_id] [purchase_token]
```### Purchase token is for a onetime purchase
```
./google_token_validator.py /path/to/google_service_credentials.json [package_name] [product_id] [purchase_token] --onetime
```### Don't print response to console
```
./google_token_validator.py /path/to/google_service_credentials.json [package_name] [product_id] [purchase_token] --quiet
```