Skip to content

Commit 1222e0a

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 de78155 commit 1222e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

payments/paypal/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def get_product_data(self, payment, extra_data=None):
353353
"expire_month": month,
354354
"expire_year": year,
355355
}
356-
if "cvv2" in extra_data and extra_data["cvv2"]:
356+
if extra_data.get("cvv2"):
357357
credit_card["cvv2"] = extra_data["cvv2"]
358358
data["payer"] = {
359359
"payment_method": "credit_card",

0 commit comments

Comments
 (0)