Change the name of Payment method

To change the name of the payment method using extension

_.extend(OrderWizardModulePaymentMethodSelector.prototype, {
  getContext: _.wrap(OrderWizardModulePaymentMethodSelector.prototype.getContext, function (fn) {
    var originalRet = fn.apply(this, _.toArray(arguments).slice(1));
	_.each(originalRet.activeModules, function (line,key) {
	   if(line.name === "Credit / Debit Card") {
	      originalRet.activeModules[key].name ="Credit Card"
					 }
				})
			return originalRet;					
		})
	});

Leave a comment

Your email address will not be published. Required fields are marked *