GithubHelp home page GithubHelp logo

lionheart / in_app_purchase_receipt_verifier Goto Github PK

View Code? Open in Web Editor NEW
58.0 58.0 24.0 1.17 MB

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

Python 74.95% Shell 17.46% Swift 7.59%
appstore django iap iap-verification ios python python-3 python3

in_app_purchase_receipt_verifier's People

Contributors

actuallytaylor avatar dependabot[bot] avatar dlo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

in_app_purchase_receipt_verifier's Issues

The ‘Deploy to Herku’ button not work

Thanks a lot for your tutorials.
I pressed the ‘Deploy to Herku’ button, but it didn't show Base64_encoded_signing_key.
Please help me solve this problem. Thank you very much.
Que1
Que2
Que3

MacOS support

Hi there,

Do you plan to add MacOS support to this project?

thanks

Cannot deploy on Heroku

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

Handling Sandbox and production URLs in views.py

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)

Facing issue with deploying

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

Post Request

I want to send this as a regular post request from my app (Flutter App). What are the parameters I need to send?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.