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

Commit

Permalink
Merge pull request jazzband#408 from PetrDlouhy/fix_ruff
Browse files Browse the repository at this point in the history
fix ruff tests
  • Loading branch information
PetrDlouhy authored Apr 17, 2024
2 parents 8303e09 + c561fd5 commit f655fb2
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 f655fb2

Please sign in to comment.