Thank you for your help.
However Im still stuck with a non-working website with no clue how to move forward.
Not sure if I should be copying in any files I find for paypal from a v155 download.
I think it the code stops on return formPassed.
I just know that clicking either of the paypal radio buttons for payment doesnt move the payment forward.
Code:
function methodSelect(theMethod) {
if (document.getElementById(theMethod)) {
document.getElementById(theMethod).checked = 'checked';
}
}
function doesCollectsCardDataOnsite(paymentValue)
{
if ($('#'+paymentValue+'_collects_onsite').val()) {
if($('#pmt-'+paymentValue).is(':checked')) {
return true;
}
}
return false;
}
function doCollectsCardDataOnsite()
{
var str = $('form[name="checkout_payment"]').serializeArray();
zcJS.ajax({
url: "ajax.php?act=ajaxPayment&method=prepareConfirmation",
data: str
}).done(function( response ) {
$('#checkoutPayment').hide();
$('#navBreadCrumb').html(response.breadCrumbHtml);
$('#checkoutPayment').before(response.confirmationHtml);
$(document).attr('title', response.pageTitle);
});
}
$(document).ready(function(){
$('form[name="checkout_payment"]').submit(function() {
$('#paymentSubmit').attr('disabled', true);
formPassed = check_form();
if (formPassed == false) {
$('#paymentSubmit').attr('disabled', false);
}
return formPassed;
});
});
//--></script>
Bookmarks