• Resolved 20miles

    (@20miles)


    I am using the WooCommerce PayPal Payments plugin. In my function.php I make some changes to the prices of some products in the cart. When I try to proceed with the payment via PayPal, the changes made to the amounts are not present.

    For example:
    Product X
    Price 100

    When I add product X to the cart, with a php function I change the price and set 70.

    Proceeding with the payment, PayPal continues to show me the price 100.

    How can I solve the problem?

Viewing 1 replies (of 1 total)
  • Plugin Support Femi

    (@femiyb)

    Hello @20miles

    I understand you have added some custom code to change the total price on the cart/checkout pages.
    You should note that PayPal retrieves the total amount of an order after the order has been created, before it is processed, so if the price change is applied correctly to the order, then it should apply the same to the PayPal transaction.

    Please check that you have used the correct “action hook” in your custom code to override the total price.

    If you are sure you are doing everything right, we can take a look at this for you, we will need a copy of your WooCommerce system report and your latest PayPal Payments log files.

    The system report can be accessed here:
    WooCommerce > Status > Get system report > Copy for support

    You can copy the log files from here:
    WooCommerce > Status > Logs > select “woocommerce-paypal-payments-[…]” in the dropdown and click on view.

    You can share it privately with us here:
    https://paypal.inpsyde.com/docs/request-support/
    If you send a private message, please include a link to this thread.

    Regards,
    Femi.

Viewing 1 replies (of 1 total)
  • The topic ‘Wrong total on checkout’ is closed to new replies.