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

From Donate
Jump to navigation Jump to search
(change 'currency' param to 'currency_code')
(allow an override for worldpay)
Line 32: Line 32:
 
// Testing for Adyen
 
// Testing for Adyen
 
if( paymentMethod === 'adyen-cc' ) {
 
if( paymentMethod === 'adyen-cc' ) {
paymentMethod = 'cc';
+
paymentMethod = 'cc';
params.paymentmethod = 'cc';
+
params.paymentmethod = 'cc';
params.gateway = 'adyen';
+
params.gateway = 'adyen';
  +
}
  +
  +
// Worldpay
  +
if( paymentMethod === 'cc-wp' ) {
  +
paymentMethod = 'cc';
  +
params.paymentmethod = 'cc';
  +
params.gateway = 'worldpay';
  +
params.ffname = 'worldpay';
 
}
 
}
 
 

Revision as of 15:56, 28 October 2014