• Resolved jremshik

    (@jremshik)


    A defect has been introduced in the paypal pro gateway logic for version 1.5.0 that causes card expiration months 10, 11 & 12 to be improperly considered invalid. The problem occurs on line 416 of wc-gateway-paypal-pro-angelleye.php where the variable $card_exp_month is cast to an int. If the month is less than 10 the variable $card_exp_month is assigned a zero padded string value. However, if the card expiration month is 10 or greater the variable $card_exp_month remains an int. This causes the card expiration data validation logic beginning on line 381 in function validate_fields to fail when the customer’s expiration month is October or later. I’ve introduced an else statement to convert the int back to a string when the month is October or later to keep my production site functioning for customers whose credit card expiration months are Oct, Nov & Dec. Wanted to make you aware of the problem so that you may fix it for others.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Invalid Card Expiration Date’ is closed to new replies.