SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7b4ceca5af3f177531b07b43b9fb0a7dbfd3c182
parent b97727fb6d24c808381e3e404c47741fcc8f309f
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Fri, 15 Jan 2021 02:47:36 +1100

another webhook attempt

Diffstat:
Mserver.py | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/server.py b/server.py @@ -75,8 +75,12 @@ def make_payment(payload): payment.response = 'Payment finalised. Thankyou!' update_status(payment) - invoice.success.success() print("ABOUT TO WEBHOOOK") + payment.status = 'HOOKING' + payment.response = 'HOOKING' + update_status(payment) + + # Call webhook response = requests.post( payload['webhook_url'], data={'id' : payload['id']}, @@ -87,6 +91,9 @@ def make_payment(payload): else: print("Successfully confirmed payment via webhook.") + payment.status = 'HOOKED' + payment.response = 'HOOKED' + update_status(payment) print("Done response part...") ### DO SOMETHING # Depends on config