Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
fix ruff tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Apr 17, 2024
1 parent 8303e09 commit c561fd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion payments/stripe/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def clean(self):
"amount": int(self.payment.total * 100),
"currency": self.payment.currency,
"card": data["stripeToken"],
"description": f"{self.payment.billing_last_name} {self.payment.billing_first_name}",
"description": f"{self.payment.billing_last_name} "
f"{self.payment.billing_first_name}",
"metadata": stripe_metadata,
}

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

0 comments on commit c561fd5

Please sign in to comment.