From 9bfd58c9596a06b99bd74431096c3a978afbbb26 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 2 Jun 2024 08:32:55 +0000 Subject: [PATCH] style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf This commit fixes the style issues introduced in b449d00 according to the output from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf. Details: None --- .../pi_network/payment_gateways/fasapay.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/blockchain_integration/pi_network/payment_gateways/fasapay.py b/blockchain_integration/pi_network/payment_gateways/fasapay.py index 5e938f299..31fad711a 100644 --- a/blockchain_integration/pi_network/payment_gateways/fasapay.py +++ b/blockchain_integration/pi_network/payment_gateways/fasapay.py @@ -1,6 +1,7 @@ # payment_gateways/fasapay.py import requests + class FasapayPaymentGateway: 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: