Shipping Charges Not Being Clubbing With Order Amount

Hello,

I recently found an issue with my platform MV 4.3.6. Shipping charges shows until you are on checkout page. Moment you click on make payment or proceed to payment, it redirect to external secure payment gateway page, but what I noticed, customer would have only the product cost visible there but no shipping charges.

Let's say..a product cost is $100, and shipping charges calculated $5, total cost to customer is $105. However until I'm on my own checkout page, it's shows total cost to customer $105, but what next, on payment gateway page (where customer actually make payment) I see only $100 and not $105.

Not sure, it's bug or something not setup properly.

Any help on this much appreciated.

Hello,

I recently found an issue with my platform MV 4.3.6. Shipping charges shows until you are on checkout page. Moment you click on make payment or proceed to payment, it redirect to external secure payment gateway page, but what I noticed, customer would have only the product cost visible there but no shipping charges.

Let's say..a product cost is $100, and shipping charges calculated $5, total cost to customer is $105. However until I'm on my own checkout page, it's shows total cost to customer $105, but what next, on payment gateway page (where customer actually make payment) I see only $100 and not $105.

Not sure, it's bug or something not setup properly.

Any help on this much appreciated.

Try to use another payment gateway. Looks like current payment system is not integrated correctly

Thanks eCom Team.

Replacing following code in payment gateway .php, fixed the issue

$paypal_shipping = fn_order_shipping_cost($order_info);

to

$paypal_shipping = fn_format_price_paypal(fn_order_shipping_cost($order_info));

Thank you.

This is what the code is in the latest version which appears to be the same as 4.3.6:

/app/addons/paypal/payments/paypal.php

    if ($paypal_currency == CART_PRIMARY_CURRENCY) {
        //Order Total
        $paypal_shipping = fn_order_shipping_cost($order_info);
        $paypal_total = fn_format_price($order_info['total'] - $paypal_shipping, $paypal_currency);
        $paypal_shipping = fn_format_price($paypal_shipping, $paypal_currency);
    } else {
        $paypal_shipping = 0;
        $paypal_total = fn_format_price_by_currency($order_info['total'], CART_PRIMARY_CURRENCY, $paypal_currency);
    }

This is what the code is in the latest version which appears to be the same as 4.3.6:

/app/addons/paypal/payments/paypal.php

    if ($paypal_currency == CART_PRIMARY_CURRENCY) {
        //Order Total
        $paypal_shipping = fn_order_shipping_cost($order_info);
        $paypal_total = fn_format_price($order_info['total'] - $paypal_shipping, $paypal_currency);
        $paypal_shipping = fn_format_price($paypal_shipping, $paypal_currency);
    } else {
        $paypal_shipping = 0;
        $paypal_total = fn_format_price_by_currency($order_info['total'], CART_PRIMARY_CURRENCY, $paypal_currency);
    }

Thanks. I have not tried it but earlier once I posted working perfectly as of now.