Permalink
Browse files

single digit months aren't leading with a 0, ref #395

  • Loading branch information...
kcppdevelopers committed Jan 22, 2016
1 parent 43da70a commit fe540fed375272317139c05144913e680ef35070
Showing with 5 additions and 3 deletions.
  1. +5 −3 classes/wc-gateway-paypal-pro-payflow-angelleye.php
@@ -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 );
}

0 comments on commit fe540fe

Please sign in to comment.