Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and WhyNotHugo committed Mar 19, 2024
1 parent a676266 commit 8303e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions payments/stripe/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ def clean(self):
"amount": int(self.payment.total * 100),
"currency": self.payment.currency,
"card": data["stripeToken"],
"description": "{} {}".format(
self.payment.billing_last_name,
self.payment.billing_first_name,
),
"description": f"{self.payment.billing_last_name} {self.payment.billing_first_name}",
"metadata": stripe_metadata,
}

Expand Down
4 changes: 1 addition & 3 deletions payments/stripe/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ def create_session(self, payment):
session_data.update(
{
"customer_data": {
"customer_name": "{} {}".format(
payment.billing_first_name, payment.billing_last_name
)
"customer_name": f"{payment.billing_first_name} {payment.billing_last_name}"
}
}
)
Expand Down

0 comments on commit 8303e09

Please sign in to comment.