My customer wants to charge a 2% shipping insurance cost if the user selects credit card as Payment method is there a way to add tis cost in Expresso Store?


There is nothing out of the box that would allow you to do this. The best option would be to build an extension that uses one of store_order_recalculate hook to add the percentage to the order.

The other option would be to modify the payment gateway in question to add the 2%. If the gateway is one of the default you will need to reapply this each time you update Store.


You could create a "tax" for it, that applies to any country and region, and call it "Shipping Insurance". That seems to be the most straight way, but of course it would be applied to all payment methods.

View docs here

  • thanks rodrigo this seems to be a simpler way! I'll dig into it! – Francesco Pensabene May 4 '15 at 10:50
  • Happy to help, but do you mind voting my answer up? I am trying to up my profile. Thanks! – Rodrigo Passos May 5 '15 at 12:35
  • Sorry Rodrigo but the right answer was the justin's one because adding a tax (as you said) applies to all payment methods, anyway thanks! – Francesco Pensabene May 5 '15 at 14:28
  • Hey guys, I need to do something similar to Francesco - do you have any code you could post as a starting point. I'm totally confused on writing an extension at the moment – xenowebdev Mar 1 '17 at 23:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.