diff --git a/blockchain_integration/pi_network/payment_gateways/bni.py b/blockchain_integration/pi_network/payment_gateways/bni.py index a5e395dba..35d603812 100644 --- a/blockchain_integration/pi_network/payment_gateways/bni.py +++ b/blockchain_integration/pi_network/payment_gateways/bni.py @@ -1,6 +1,7 @@ # payment_gateways/bni.py import requests + class BNIPaymentGateway: def __init__(self, api_key, api_secret): self.api_key = api_key @@ -10,13 +11,12 @@ def __init__(self, api_key, api_secret): def make_payment(self, amount, recipient_account_number): headers = { "Authorization": f"Bearer {self.api_key}", - "Content-Type": "application/json" - } - data = { - "amount": amount, - "recipient_account_number": recipient_account_number + "Content-Type": "application/json", } - response = requests.post(f"{self.base_url}/payments", headers=headers, json=data) + data = {"amount": amount, "recipient_account_number": recipient_account_number} + response = requests.post( + f"{self.base_url}/payments", headers=headers, json=data + ) if response.status_code == 200: return response.json() else: