HiWe are currently using the DIBS payment gateway (http://world.episerver.com/add-ons/dibs/) as the only means of payments on our site. Is it possible to add a fee on the payment in EPiServer, based on the chosen payment type sent to DIBS? /Swensson
I don't think that is possible. You have to include the cost in the total amount of the order. The question is for which article. I would imagine you to have your own IOrderGroupEx inherit from IOrderGroup to add a new field and update the calculators to set that field (PaymentFee etc.)
In short, no, I don't know a working solution, and I'm also interested if someone want to share a solution for this.
The way we normally solve it is to have custom logic that sets the HandlingTotal on the IOrderForm depending on what payment type is chosen. We don't use the Handling for anything besisdes payment fees.
We do however have our own calculators for order total and tax calculations, whether or not IOrderForm.HandlingTotal is taken into account by the default calculators i can not say.
As of release 10.1.0 (http://world.episerver.com/releases/episerver---update-139/) of Episerver Commerce Handling cost is included in the calculation of order total. See bug http://world.episerver.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=COM-3344.
This topic was also discussed here: http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=170799
No idea unfortunately Erik.
For your information, http://world.episerver.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=COM-3344 was fixed and released in 10.1.0.
And IMO, it's great idea if you use IOrderForm.HandlingTotal (y)