Developer forum

Forum » Development » FeeProvider for PaymentFee and ShipingFee

FeeProvider for PaymentFee and ShipingFee

Martin Nielsen
Reply

Hi DW,

 

Is it possible to create a FeeProvider that only run on a PaymentFee and not on ShippingFee and visa versa?

 

I have a issue with a FeeProvider that is made for handeling custom shipping fees, but this provider also runs on payment fee, which i don't want.

 

// Martin


Replies

 
Nicolai Høeg Pedersen
Reply

A fee provider is only shipping...?

There are no payment fee provider.

I've just changed the Notifications.eCommerce.Order.BeforePaymentFeeCalculation notification so that it has a property on the BeforePaymentFeeCalculationArgs arguments called PaymentFee. If you set that to a price info, that will be the price of the payment and not the one Dynamicweb calculates.

PaymmentFee = New Prices.PriceInfo()

This is a 8.4.1 thing unles we merge it down.

BR Nicolai

 
Martin Nielsen
Reply

Hi Nicolai,

Turned out my issue was not a FeeProvider issue, but great that we now get a PaymentFee provider :-)

// Martin

 

You must be logged in to post in the forum