Skip to content

Commit

Permalink
single digit months aren't leading with a 0, ref #395
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jan 22, 2016
1 parent 43da70a commit fe540fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions classes/wc-gateway-paypal-pro-payflow-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,11 @@ function process_payment( $order_id ) {
if ( strlen( $card_exp_year ) == 4 ) {
$card_exp_year = $card_exp_year - 2000;
}




$card_exp_month = (int) $card_exp_month;
if ($card_exp_month < 10) {
$card_exp_month = '0'.$card_exp_month;
}
// Do payment with paypal
return $this->do_payment( $order, $card_number, $card_exp_month . $card_exp_year, $card_cvc );
}
Expand Down

0 comments on commit fe540fe

Please sign in to comment.