Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/js/TwoStepTwoColumnLetter3.js |
— | — | @@ -41,6 +41,10 @@ |
42 | 42 | } |
43 | 43 | |
44 | 44 | $( "#ccSubmitButton" ).click( function() { |
| 45 | + // Set expiration date |
| 46 | + $( "input[name='expiration']" ).val( |
| 47 | + $( "select[name='mos']" ).val() + $( "select[name='year']" ).val().substring( 2, 4 ) |
| 48 | + ) |
45 | 49 | // Safety check for people who hit the back button on forms with amount radio buttons |
46 | 50 | if ( $( "input[name='amountRadio']" ).length ) { |
47 | 51 | checkedValue = $( "input[name='amountRadio']:checked" ).val(); |