From e2741281ef83734032f740a8c573c25b5f02eaf1 Mon Sep 17 00:00:00 2001 From: Godey Tech <91687536+godfredtenkorang@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:17:21 +0000 Subject: [PATCH] changes --- ussd/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ussd/views.py b/ussd/views.py index 0da748fc..2c19033d 100644 --- a/ussd/views.py +++ b/ussd/views.py @@ -97,7 +97,7 @@ def send_response(msg, msgtype=True): elif level == 'payment': amount = session.amount * 100 telephone = msisdn - endpoint = "https://api.paystack.co" + endpoint = "https://api.paystack.co/charge" email = f"{msisdn}@voteafric.com" amount_in_kobo = int(Decimal(amount) * 100) # Convert to kobo