• From time to time I receive this error

    Uncaught Error: Call to undefined method WC_Order_Refund::get_transaction_id() in /home/h3xvcbj/public_html/wp-content/plugins/pymntpl-paypal-woocommerce/src/WebhookEventReceiver.php:48

    How could I solve it?

Viewing 1 replies (of 1 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    That error implies that somehow the order ID associated with the PayPal event payment.capture.completed is actually a refund object in your system. That should never happen and this is the first occurrence of this error I have seen.

    Do you know why the wc_get_order() function would return a refund object? What I recommend you do is login to your PayPal business account and find the payment associated with that order and check the Custom ID value. Does it match an order ID or refund ID in your system?

    Thanks

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.