diff --git a/blockchain_integration/pi_network/payment_gateways/bank_of_the_west.py b/blockchain_integration/pi_network/payment_gateways/bank_of_the_west.py index 9ea0999c5..b88021a86 100644 --- a/blockchain_integration/pi_network/payment_gateways/bank_of_the_west.py +++ b/blockchain_integration/pi_network/payment_gateways/bank_of_the_west.py @@ -1,6 +1,7 @@ # payment_gateways/bank_of_the_west.py import requests + class BankOfTheWestPaymentGateway: def __init__(self, client_id, client_secret): self.client_id = client_id @@ -10,13 +11,12 @@ def __init__(self, client_id, client_secret): def make_payment(self, amount, recipient_account_number): headers = { "Authorization": f"Bearer {self.client_id}", - "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: