Index: trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js |
— | — | @@ -59,8 +59,15 @@ |
60 | 60 | if ( document.payment.country.value != '840' ) { |
61 | 61 | document.payment.state.value = 'XX'; |
62 | 62 | } |
| 63 | + |
| 64 | + // validate name |
| 65 | + if (document.getElementById('fname').style.color == '#999999') { |
| 66 | + output += payflowproGatewayErrorMsgJs + ' ' + window['payflowproGatewayErrorMsg' + msg[Fname]] + '.\r\n'; |
| 67 | + } |
| 68 | + if (document.getElementById('lname').style.color == '#999999') { |
| 69 | + output += payflowproGatewayErrorMsgJs + ' ' + window['payflowproGatewayErrorMsg' + msg[Lname]] + '.\r\n'; |
| 70 | + } |
63 | 71 | |
64 | | - |
65 | 72 | // validate email address |
66 | 73 | var apos = document.payment.emailAdd.value.indexOf("@"); |
67 | 74 | var dotpos = document.payment.emailAdd.value.lastIndexOf("."); |