In PayPal sandbox, the payment sale completed webhook is not sending resource_version, resulting in a log warning.
Undefined property stdClass::$resource_version in \wp-content\plugins\woocommerce-paypal-payments\modules\ppcp-api-client\src\Factory\WebhookEventFactory.php
To Reproduce
Complete a sale
View php error log
Screenshots
Expected Behavior
No php warning
Actual Behavior
php warning
Environment
WordPress Version: 6.5.3
WooCommerce Version: 8.9.1
Plugin Version: 2.7.1
Browser [e.g. Chrome, Safari] and Version: N/A
Any other plugins installed: N/A
Additional Details
The class WebhookEvent is expecting resource_version which is not always sent
Describe the Bug
In PayPal sandbox, the payment sale completed webhook is not sending resource_version, resulting in a log warning.
Undefined property stdClass::$resource_version in \wp-content\plugins\woocommerce-paypal-payments\modules\ppcp-api-client\src\Factory\WebhookEventFactory.php
To Reproduce
Screenshots
Expected Behavior
No php warning
Actual Behavior
php warning
Environment
Additional Details
The class WebhookEvent is expecting resource_version which is not always sent
System status
``` ```