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

From Donate
Jump to navigation Jump to search
Content deleted Content added
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