From d4fd4705644c4afc37be57e5dbe1f0637d0ab24d Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 24 Aug 2023 16:25:55 +1000 Subject: [PATCH] main: Stripe log all requests --- master/main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/master/main.py b/master/main.py index 9451555..4ae4b03 100644 --- a/master/main.py +++ b/master/main.py @@ -235,6 +235,10 @@ def tlsa(): @app.route('/stripe', methods=['POST']) def stripe(): + # Log all requests + print(request.json) + # Log for docker + print(request.json, flush=True) # Get API header api_key = request.headers.get('key') if api_key == None: @@ -242,10 +246,7 @@ def stripe(): if api_key != os.getenv('STRIPE_KEY'): return jsonify({'error': 'Invalid API key', 'success': 'false'}) - # Log all requests - print(request.json) - # Log for docker - print(request.json, flush=True) + return jsonify({'success': 'true'})