Skip to content

Commit 8303e09

Browse files
pre-commit-ci[bot]WhyNotHugo
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a676266 commit 8303e09

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

payments/stripe/forms.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ def clean(self):
5151
"amount": int(self.payment.total * 100),
5252
"currency": self.payment.currency,
5353
"card": data["stripeToken"],
54-
"description": "{} {}".format(
55-
self.payment.billing_last_name,
56-
self.payment.billing_first_name,
57-
),
54+
"description": f"{self.payment.billing_last_name} {self.payment.billing_first_name}",
5855
"metadata": stripe_metadata,
5956
}
6057

payments/stripe/providers.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ def create_session(self, payment):
131131
session_data.update(
132132
{
133133
"customer_data": {
134-
"customer_name": "{} {}".format(
135-
payment.billing_first_name, payment.billing_last_name
136-
)
134+
"customer_name": f"{payment.billing_first_name} {payment.billing_last_name}"
137135
}
138136
}
139137
)

0 commit comments

Comments
 (0)