[12-Sep-2024 22:24:21 UTC] PHP Warning: Undefined property: stdClass::$invoice_id in /home/xxxxxx/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/CaptureFactory.php on line 86
Thanks for reaching out to us, we’re here to help.
The warning you’re seeing indicates that the PayPal API response is missing the invoice_id field, which is expected by the plugin at the point where the error occurs. Could you please share a screenshot of your connection tab with the “Invoice prefix” option visible?
Would be helpful to get a complete copy of your debug log along with the PayPal Payments logs from the last few days. This will allow us to check the logs and potentially match the warnings with some API responses from PayPal. It seems that for some reason, PayPal’s response may not be including the necessary data, which is unusual. However, we can better assess the situation with the plugin logs.
You can retrieve these logs by following these steps:
Go to WooCommerce > Status > Logs.
Select the most recent “woocommerce-paypal-payments” log file associated with the date of the failed order.
Once you have the log entries, please upload them to our PrivateBin. After uploading, send us the link, and we’ll review them in detail to help resolve the issue.