Currently the method that builds the credit card form uses non-padding values for the select list. However it uses them for the display. Gateways will fail if passed the non-padded value.

Proposed change

    $months = [];
    for ($i = 1; $i < 13; $i++) {
      $month = str_pad($i, 2, '0', STR_PAD_LEFT);
      $months[$month] = $month;
    }

Comments

mglaman created an issue. See original summary.

mitrpaka’s picture

Status: Active » Needs review
bojanz’s picture

Status: Needs review » Fixed

Merged, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.