Developer forum

Forum » Ecommerce - Standard features » Automatic addition of "Surcharge" in Checkout.

Automatic addition of "Surcharge" in Checkout.

Rene Poulsen
Rene Poulsen
Reply

Got this from our customer:

"Nets has introduced a new feature that allows us to re-invoice the costs of card transactions (on corporate cards and foreign cards), but I have been informed that they need to know whether DW uses “webhooks” before they can make the feature available in the checkout."

Do you support that?


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi

Checkouthandlers in Dynamicweb can conceptually support surcharges from gateways. But it is probably not implemented in many of them as it has not been legal.

What gateway are you using?

BR Nicolai

 
Rene Poulsen
Rene Poulsen
Reply

DIbs / NetsEasy

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi

The webhook is calling back to the dibs/nets easy checkouthandler - see https://github.com/dynamicweb/CheckoutHandlers.DibsEasyCheckout/blob/main/src/DibsEasyCheckout.cs#L218

Inside that method we call UpdateOrderInfo with a paymentid from nets - and have the entire payment object: https://github.com/dynamicweb/CheckoutHandlers.DibsEasyCheckout/blob/main/src/DibsEasyCheckout.cs#L271

In the repo you can see what we handle - if Nets can send the fee back, it seems like it is possible to update the gateway to also handle the charge and surcharge - seems to be here: https://developer.nexigroup.com/nexi-checkout/en-EU/api/payment-v1/#v1-payments-paymentid-get-responses-200-payment-charges

BR Nicolai

 
Rene Poulsen
Rene Poulsen
Reply

Ok, so if we should enable the feature it requires us to customize the DibsCheckout? Just to be sure :-) Or do you have plans to change it?

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

We can look into adding it - or you can do a pull requst on github and we will bake it in.

 
Rene Poulsen
Rene Poulsen
Reply

Great. Thank you. I'd prefer that you look into it :-)

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

That I understand :). I prefer you add it when you have a customer that actually gets this activated. We will run into an issue getting a testable setup to begin with....

What is your timeframe?

 
Rene Poulsen
Rene Poulsen
Reply

That I undstand ;-)

Well, our custoer just reached out to hear if it was possible at all. I've told them that atm. it's not - and when new features like that arrives it's not just working out of the box in an integration between DW and a 3rd party (in this case Dibs / NetsEasy). So no real timeframe yet. Maybe we could use a dev setup of our customers setup for you to develop it on if that could make sense and help you in any way?

 

You must be logged in to post in the forum