Template:2012FR/Form-section/Processing/Default: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
explicitly set recurring=false if needed |
only mess with form after validating |
||
Line 9: | Line 9: | ||
donationForm.redirectPayment = function(paymentMethod, paymentSubMethod, skipValidation) { |
donationForm.redirectPayment = function(paymentMethod, paymentSubMethod, skipValidation) { |
||
if ( |
if ( skipValidation || validateForm(form) ) { |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
form.currency_code.value = '</html>{{{currency|USD}}}<html>'; |
|||
⚫ | |||
⚫ | |||
form.currency_code.value = '</html>{{{currency|USD}}}<html>'; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
paymentSubMethod = ''; |
|||
⚫ | |||
} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
if( paymentMethod === 'cc-adyen' ) { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
⚫ | |||
form.ffname.value = 'adyen'; |
|||
} |
} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
if ( paymentSubMethod ) { |
|||
full_dotted_payment_method = form.payment_method.value + '.' + paymentSubMethod; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
if ( skipValidation || validateForm(form) ) { |
|||
form.method = "GET"; |
form.method = "GET"; |
||
form.submit(); |
form.submit(); |
Revision as of 17:27, 12 July 2016