rajsharma Posted May 25, 2012 Share Posted May 25, 2012 Hello, We had modified some codes in the Payment module to add 2% as processing fee on the cart value for an particular Bank. And now when the client tries to make the payment the 2% is added to the payment gateway and sent for processing but then payment gets failed and we get a error in our Back Office .. Order Page.. The error shows as above : Warning: XXX paid instead of XXXX Now the Payment Gateway people are saying its an error in prestashop due to adding of 2% Now please let us know what can be done for this. Also please suggest an alternate method for adding the Processing Fee Link to comment Share on other sites More sharing options...
phrasespot Posted May 28, 2012 Share Posted May 28, 2012 We had modified some codes in the Payment module to add 2% as processing fee on the cart value for an particular Bank. And now when the client tries to make the payment the 2% is added to the payment gateway and sent for processing but then payment gets failed and we get a error in our Back Office .. Order Page.. Reverting your changes will fix this problem. Also please suggest an alternate method for adding the Processing Fee Not posible out of the box. Maybe there is a module for it (unlikely). You could use the handling fee or increase prices by a fraction to cover that %2. Also check woith the payment processor that charging extra for that payment method is not against the T&C. 1 Link to comment Share on other sites More sharing options...
bellini13 Posted May 28, 2012 Share Posted May 28, 2012 if you managed to add the 2% fee, then you need to do 1 of 2 things 1) The payment module needs to store the new order total amount which includes the 2% 2) The payment module needs to pass the new order total amount to the validateOrder method If the order total amount and the actual amount paid do not match, then prestashop will report an error. The above 2 items are typically the issue. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now