Hello,
most likely related to this one:
www.joomlapolis.com/forum/277-cbsubs-gpl-support/225475-4501-bug-with-setting-display-radios-for-recurring-payments-and-paypal-gateway
I am using radiobutton presentation for the payments gateway and have activated that the user must accept Terms and Conditions before proceeeding.
However the user can proceed without being forced to check the Terms and Conditions.
I can see that the related Javascript function
Code:
function paidsubsTermsAcceptChange() {
var paybuttons = $('.cbpayChoices .cbpaidCCbutton form input[type="image"], .cbpayChoices .cbpaidCCbutton form button');
if ( $(this).attr('checked') ) { ....
does not cater to the button used when using radio button presentation (the 'buy' button has class .cbpaidCCbuttonInput ).
By adding the .cbpaidCCbuttonInput to the jQuery selector it seems to fix the issue at first but the 'buy' button can still be clicked (although it looks disabled) and I am afterwards transferred to Paypal.
If the T&C are not marked the form needs to be stopped from submitting.
I made another change to include the submit.
Code:
$('.cbpayChoices .cbpaidCCbutton form' ).submit( function() {
The fix is ugly (because of code duplication) but it works (I attached the fixed file). This needs to be fixed properly for the next CBSubs version.
Regards
Carsten