• Resolved mfgsc

    (@mfgsc)


    Hello guys,

    I have a small problem with my online shop and unfortunately I can’t get any further. It’s probably just a small thing, but I’m kind of stuck.

    I run an online shop in Germany and have set up PayPal Payments as a payment method. In principle this works too.
    When paying via Paypal, I would like only the total amount to be transferred to Paypal.
    At the moment all details such as: products, net total, freight costs, taxes and total are transferred to Paypal.
    However, I would like only the total amount and possibly a payment reference to be transferred.
    (Just as is done millions of times with normal bank transfers, an amount and a payment reference are simply entered.)
    I once checked my private PayPal payments to other shops: the tax is never shown. The tax is only shown in my shop (see Beispiel 4.jpg).
    And since all other shops do not pass this data on to Paypal, I am convinced that this can be switched off somehow.

    It would be very important to me that the tax is not explicitly displayed. A total amount is sufficient for Paypal payment.

    Maybe it is possible to manipulate the Paypal data with a filter ala add_filter(‘ppcp_create_order_request_body_data’,…
    But I would need some support here as this topic is not well documented on the internet.

    Many thanks,
    mfgsc

    https://www.traumduft.com/public/paypal/example1.png

    https://www.traumduft.com/public/paypal/example2.png

    https://www.traumduft.com/public/paypal/example3.png

    https://www.traumduft.com/public/paypal/example4.png

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mfgsc

    (@mfgsc)

    Hello,

    I have found a solution. With the following filter in functions.php, no more details are transferred. No individual products, and no individual totals. Only the total amount will be transferred to PayPal.

    add_filter( ‘ppcp_ditch_items_breakdown’, ‘__return_true’ );

    I’m happy with that.

    Plugin Support Syde Jamie

    (@jamieong)

    Hi @mfgsc ,

    Thank you for reaching out to us, we are here to help.

    You were spot on, by enabling this filter it will turn off the functionality and leave the PayPal order with no items.

    Further filters and actions, you can find it here.

    Let us know if there is anything else we can help you with.

    Best Regards,
    Jamie

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.