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 Feb 13, 2024
1 parent de78155 commit 1222e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payments/paypal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def get_product_data(self, payment, extra_data=None):
"expire_month": month,
"expire_year": year,
}
if "cvv2" in extra_data and extra_data["cvv2"]:
if extra_data.get("cvv2"):
credit_card["cvv2"] = extra_data["cvv2"]
data["payer"] = {
"payment_method": "credit_card",
Expand Down

0 comments on commit 1222e0a

Please sign in to comment.