diff --git a/blockchain_integration/pi_network/payment_gateways/jpmorgan_chase.py b/blockchain_integration/pi_network/payment_gateways/jpmorgan_chase.py index 8dcdfb42f..752fb2aa5 100644 --- a/blockchain_integration/pi_network/payment_gateways/jpmorgan_chase.py +++ b/blockchain_integration/pi_network/payment_gateways/jpmorgan_chase.py @@ -1,6 +1,7 @@ # payment_gateways/jpmorgan_chase.py import requests + class JPMorganChasePaymentGateway: 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: