File tree Expand file tree Collapse file tree 2 files changed +2682
-875
lines changed
Expand file tree Collapse file tree 2 files changed +2682
-875
lines changed Original file line number Diff line number Diff line change @@ -240,13 +240,13 @@ app = Flask(__name__)
240240# - The `secret` argument to `webhooks.unwrap`
241241client = Increase()
242242
243+
243244@app.route (" /webhook" , methods = [" POST" ])
244245def webhook ():
245246 request_body = request.get_data(as_text = True )
246247
247248 try :
248-
249- event = client.webhooks.unwrap(request_body, request.headers, secret = ' your webhook secret' )
249+ event = client.webhooks.unwrap(request_body, request.headers, secret = " your webhook secret" )
250250
251251 if event.type == " account.created" :
252252 print (" Account created:" , event.data)
@@ -284,6 +284,7 @@ app = Flask(__name__)
284284# - The `secret` argument to `webhooks.unwrap`
285285client = Increase()
286286
287+
287288@app.route (" /webhook" , methods = [" POST" ])
288289def webhook ():
289290 request_body = request.get_data(as_text = True )
You can’t perform that action at this time.
0 commit comments