lionheart / in_app_purchase_receipt_verifier Goto Github PK
View Code? Open in Web Editor NEWA simple, one-click deploy web app to simplify the process of validating In-App Purchase receipts on the App Store.
License: Apache License 2.0
A simple, one-click deploy web app to simplify the process of validating In-App Purchase receipts on the App Store.
License: Apache License 2.0
Hi there,
Do you plan to add MacOS support to this project?
thanks
After specifying all information and clicking deploy button, Heroku shows this log message:
-----> Building on the Heroku-20 stack
-----> Python app detected
! Requested runtime (python-3.6.2) is not available for this stack (heroku-20).
! Aborting. More info: https://devcenter.heroku.com/articles/python-support
! Push rejected, failed to compile Python app.
! Push failed
Hi
Thanks for writing this code. I would like to handle sandbox and production URL in same code. I don't know Python so wanted to check whether below code looks fine in views.py. Everything remains same.
I have added URL variables to handle this.
response = requests.post(settings.RECEIPT_VERIFICATION_URL_PRODUCTION, data=json.dumps(data))
payload = response.json()
status = payload["status"]
if status == 21007
response = requests.post(settings.RECEIPT_VERIFICATION_URL_SANDBOX, data=json.dumps(data))
payload = response.json()
response = JSONResponse(payload)
getting warning in Heroku
Python has released a security update! Please consider upgrading to python-3.6.8
getting below error
Build app Hide build log
There was an issue building your app. This can mean your app.json's project is not a valid Heroku application. Please ensure your app is deployable to Heroku and try again.
-----> $ python manage.py collectstatic --noinput
Traceback (most recent call last):
File "/tmp/build_b5a98b2167870f23906d74d7e0566400/lionheart-in_app_purchase_receipt_verifier-483e1be/settings.py", line 220, in <module>
environment = os.environ['APP_ENVIRONMENT']
File "/app/.heroku/python/lib/python3.6/os.py", line 669, in __getitem__
raise KeyError(key) from None
KeyError: 'APP_ENVIRONMENT'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 20, in <module>
execute_from_command_line(sys.argv)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 308, in execute
settings.INSTALLED_APPS
File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/app/.heroku/python/lib/python3.6/site-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/app/.heroku/python/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "/tmp/build_b5a98b2167870f23906d74d7e0566400/lionheart-in_app_purchase_receipt_verifier-483e1be/settings.py", line 222, in <module>
raise Exception("""Please set your app environment (APP_ENVIRONMENT).""")
Exception: Please set your app environment (APP_ENVIRONMENT).
! Error while running '$ python manage.py collectstatic --noinput'.
See traceback above for details.
You may need to update application code to resolve this error.
Or, you can disable collectstatic for this application:
$ heroku config:set DISABLE_COLLECTSTATIC=1
https://devcenter.heroku.com/articles/django-assets
! Push rejected, failed to compile Python app.
! Push failed
Hi @dlo @rloewenherz
the newest Heroku stack, which is Heroku-22, requires python-3.10.7.
Could you please update the settings?
Cheers
Mariusz
I want to send this as a regular post request from my app (Flutter App). What are the parameters I need to send?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.