Hello @mountbest
It appears that the issue you’re encountering might be a false positive. We’ve had similar cases reported, which you can review here for further details:
So far w’ve discovered that disabling the cart simulation can resolve warnings about deprecated API usage. You can disable this feature by adding the following filter to your website:
add_filter( 'woocommerce_paypal_payments_simulate_cart_enabled', '__return_false' );
To easily add this filter, consider using the Code Snippets plugin, which simplifies managing and implementing code snippets on your WP site.
If you have any further questions or need additional assistance, please don’t hesitate to contact us.
Kind Regards,
Krystian