diff --git a/payments/paypal/__init__.py b/payments/paypal/__init__.py index e7f2d0e58..b7f0adebb 100644 --- a/payments/paypal/__init__.py +++ b/payments/paypal/__init__.py @@ -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",