Private
Public Access
1
0

first attempt at process_webhook

This commit is contained in:
Sander Roosendaal
2021-02-02 21:59:24 +01:00
parent 1686467ea3
commit 269417b660
3 changed files with 35 additions and 7 deletions

View File

@@ -56,7 +56,10 @@ def create_contact(rower):
res = requests.post(contacts_url, data=json.dumps(post_data), auth=auth,headers=headers)
return res
if res.status_code not in [200,201]:
return 0
return res.json()['id']
# this should be triggered by a Braintree webhook
def create_invoice(rower,amount,braintreeid,send=False):