Difference between revisions of "Template:2012FR/Form-section/Processing/Default"

From Donate
Jump to navigation Jump to search
(Express Checkout override for Japan. Remove once it's default.)
Line 44: Line 44:
   
 
// Express Checkout override for Japan. Remove once it's default.
 
// Express Checkout override for Japan. Remove once it's default.
if ( paymentMethod === 'paypal' && form.country.value === 'JP' ) {
+
if ( paymentMethod === 'paypal' ) {
form.gateway.value = 'paypal_ec';
+
if ( form.country.value === 'JP' ) {
  +
form.gateway.value = 'paypal_ec';
  +
}
 
}
 
}
   

Revision as of 13:35, 5 September 2017