first attempt at process_webhook
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user