Skip to content

Commit c561fd5

Browse files
committed
fix ruff tests
1 parent 8303e09 commit c561fd5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

payments/stripe/forms.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def clean(self):
5151
"amount": int(self.payment.total * 100),
5252
"currency": self.payment.currency,
5353
"card": data["stripeToken"],
54-
"description": f"{self.payment.billing_last_name} {self.payment.billing_first_name}",
54+
"description": f"{self.payment.billing_last_name} "
55+
f"{self.payment.billing_first_name}",
5556
"metadata": stripe_metadata,
5657
}
5758

payments/stripe/providers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def create_session(self, payment):
131131
session_data.update(
132132
{
133133
"customer_data": {
134-
"customer_name": f"{payment.billing_first_name} {payment.billing_last_name}"
134+
"customer_name": f"{payment.billing_first_name} "
135+
f"{payment.billing_last_name}"
135136
}
136137
}
137138
)

0 commit comments

Comments
 (0)