When redirecting to SagePay the Payment Description is set to "Sum". Is it possible to override this value, to something like an order number or a more user friendly message?
It depends on what version of ucommerce you're using.
In the newer versions of uCommerce the SagePayPaymentMethodService will have a method called AddParameters()
So one way to solve the problem would be to make a new PaymentMethodService and inherit SagePayPaymentMethodService
and then override the AddParameters() method, so it first calls the AddParameters() method on the base and then modify the dictionary.
Set SagePay payment description
When redirecting to SagePay the Payment Description is set to "Sum". Is it possible to override this value, to something like an order number or a more user friendly message?
Thanks
Hey Chris
It depends on what version of ucommerce you're using.
In the newer versions of uCommerce the SagePayPaymentMethodService will have a method called AddParameters()
So one way to solve the problem would be to make a new PaymentMethodService and inherit SagePayPaymentMethodService and then override the AddParameters() method, so it first calls the AddParameters() method on the base and then modify the dictionary.
Finally you will need to register the new PaymentMethodService in custom.config with the same id as the SagePayPaymentMethodService. Here is a link to our documentation on how to register custom components.
Kind regards
Thomas Arvidsen
is working on a reply...