woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 47 forks source link

Undefined property stdClass::$resource_version #2290

Closed marknokes closed 3 months ago

marknokes commented 4 months ago

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

  1. Complete a sale
  2. View php error log

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 ``` ```