Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit 1e5e4e2

Browse files
committed
v0.7.10
1 parent 3e3eae3 commit 1e5e4e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

python_flutterwave/payment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def initiate_payment(tx_ref: str, amount: float, redirect_url: str, customer_ema
5858
raise TokenException(token=token, message='Invalid token provided')
5959
if response.status_code == 400:
6060
raise Exception(f"{response.json()['message']}")
61+
if response.status_code >= 400:
62+
raise Exception(f"{response.json()['message']}")
6163
link = response.json()["data"]["link"]
6264
return link
6365

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = python-flutterwave
3-
version = 0.7.9
3+
version = 0.7.10
44
author = William Otieno
55
author_email = jimmywilliamotieno@gmail.com
66
description = Python Wrapper for interacting with the Flutterwave Payments API

0 commit comments

Comments
 (0)