Hi,

we have two payment methods available in our site: 'credit card' and 'pay on delivery'.

The matter is that we would like to charge an extra for 'pay on delivery', so we have to increase the order total after choosing the payment method.

At this point, I've tried myself, searched for examples but I'm not able to configure it in the propper way.

Anyone can help me on this? Any help would be appreciated.

Comments

rszrama’s picture

Status: Active » Fixed

There's nothing to support this natively right now. Payment method selection is purely stored in the $order->data array, which is inaccessible to Rules. You'll need a custom Rules condition to access it for now, though we should try to get something like that in core. Additionally, there is no way to just increase the total of an order. It must be done via a custom line item or a percentage fee added to the order on a per-line item basis. For example, if you have the condition I mention, you could create a product pricing rule that adds a 5% fee to the price of everything if that condition detects the "Pay on delivery" payment method.

Hope this helps! I'd leave this issue open, but I think we have another one to address getting the condition in for payment method selection.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dianikol’s picture

Still no solution for this one?

silkogelman’s picture

There is a suggestion that is Tax Rule based at #5:
#1347160: How do I set a rule for adding the fee for a payment method?

And have a look at the Rule suggestion at #4:
#1352524: COD Payment dependent extra shipping fee
it seems to be payment method based

(I haven't tested these)

FiNeX’s picture

@s1l: both doesn't work if you need a fixed fee after selecting the payment.