• Resolved littlesofia

    (@littlesofia)


    Hello, is this possible and can someone help me with how this will be implemented? It’s kind of urgent. And also, will PayPal give me a warning because of this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @littlesofia

    To hide the product title name from PayPal transaction details, you would need to disable the functionality that sends the item breakdown to PayPal.

    Adding this filter will prevent the product names from appearing in the PayPal order details.

    add_filter( 'ppcp_ditch_items_breakdown', '__return_true' );
    

    More information can be found on our GitHub wiki: https://github.com/woocommerce/woocommerce-paypal-payments/wiki/Actions-and-Filters#paypal-order-creation

    I hope this information helps.

    Kind regards,
    Krystian

    Thread Starter littlesofia

    (@littlesofia)

    @inpsydekrystian

    Thank you! Do I just copy paste it into code snippet plugin?

    And also does PayPal allow this? Or will they go after me for doing this?

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @littlesofia

    Yes, you can certainly use the Code Snippets plugin to execute filters. However, the choice of whether to use this plugin or another method depends on your personal preference. This plugin is quite versatile and user-friendly, and I personally recommend it for its ease of use and functionality.

    PayPal’s policies primarily focus on the security and legality of transactions. As long as your use of the plugin is for legitimate purposes and does not involve any fraudulent or unauthorized transactions, there should be no issues.

    Kind regards,
    Krystian

    Thread Starter littlesofia

    (@littlesofia)

    @inpsydekrystian

    Thank you so much. I tried it out and it worked!

    I’m getting picky, but is it possible to change the item name? Currently it says. Purchase details and then Item

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @littlesofia

    To modify the item name as you’ve described, you will need to use a more complex filter that can adjust the order creation and patch data.

    You can find the example code here. You can freely modify it according to your needs. This example code unsets the SKU, empties the product description, and replaces the product title with?Order #123.

    If you have any more questions or need further assistance, feel free to ask.

    Kind Regards,

    Krystian

    Thread Starter littlesofia

    (@littlesofia)

    @inpsydekrystian

    Thank you!

    Should I remove the other code snippet that I pasted earlier?

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello?@littlesofia

    Yes, since the second one also empties the product name. If you want a filter with the exact product name – please let me know what kind, and I’ll try to provide one.

    Kind regards,
    Krystian

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hide product title name from paypal transaction details’ is closed to new replies.