Custom Description | WordPress.org

[ad_1]

Hi @wordpresssites

The PayPal Payments plugin includes filters that give you the option to alter the order creation and patch data. Please review the instructions here in the GitHub wiki.

Do keep in mind that if you modify any details at the order creation stage, it may be required to include these changes in the patch data as well. This ensures the patch operation does not overwrite your customized order creation data with the original values.

The item breakdown can also be entirely disabled if the intention is to send only the payment amount to PayPal.

I hope this helps! Let us know if any questions remain.

Kind regards,
Niklas

This hook doesn’t remove the item name and description or the order number and price from all PP order details based on my testing.

add_filter( ‘ppcp_ditch_items_breakdown’, ‘__return_true’ );

Hi @wordpresssites

PayPal requires an Invoice ID and a payment amount. Everything else is more or less optional.
When you use the ppcp_ditch_items_breakdown filter, the PayPal order only contains the two things mentioned above, a Custom id to identify the order later on, and the buyer’s shipping address.

In that case, there will be no product name, description, quantity, taxes, or shipping details. So PayPal essentially has no idea what you were selling.

Kind regards,
Niklas

Hi NIklas

Thanks for your help. Resolved.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer