
Originally Posted by
DrByte
this part is pretty crucial, or else it'll not get triggered for the right module:
Code:
$js = ' if (payment_value == "' . $this->code . '") {' . "\n" .
Hi DrByte,
Thank you for looking at this. Yep, I do have that...
Code:
function javascript_validation() {
$js = ' if (payment_value == "' . $this->code . '") {' . "\n" .
Basically I took the javascript_validation section from cc.php and linkpoint_api.php as examples and changed the "contents" to match the fields I need validated.
I look at the page source generated and the script is all there. One block for each payment method -- linkpoint_api (from memory) and echeck. The fields for the form are all named correctly and have values. The script seems to have generated properly, I'm not getting any JS errors thrown at me in the browser. It just doesn't work if they are both there. I don't feel 100% with JS and I can't figure out from reading the JS if there is some reason for this not liking two payment methods.
Outside of that section of the file in modules/payment, is there any other section in that file that is critical? I do have the function get_error near the bottom, as in cc.php.
It's not a large file -- it really only collects the info and emails it on. If you have the time and would be willing, I could send it to you or copy here any sections you'd want to see. Or you can get it from the downloads section (echeck) to see what other sections are being returned as false; all I did was add the validation section.
Thanks again for looking,
Becky