{"id":15682468,"date":"2022-05-26T16:17:13","date_gmt":"2022-05-26T16:17:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/eh_paypal_express_payment-error-500\/"},"modified":"2022-05-26T16:17:13","modified_gmt":"2022-05-26T16:17:13","slug":"eh_paypal_express_payment-error-500","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/eh_paypal_express_payment-error-500\/","title":{"rendered":"Eh_PayPal_Express_Payment error 500"},"content":{"rendered":"<p>I get an error 500 when paypal calls this API<br \/>\n\/wc-api\/Eh_PayPal_Express_Payment\/?c=express_details&amp;express=true&amp;p=https:\/\/www.ZZZ.it\/checkout\/&amp;pay_for_order=true&amp;token=XXX&amp;PayerID=YYY<\/p>\n<p>in my debug.log file I have no Fatal error but this notice<\/p>\n<p>[26-May-2022 15:31:49 UTC] PHP Notice:  Undefined variable: order in &#8230;\/wp-content\/plugins\/express-checkout-paypal-payment-gateway-for-woocommerce\/includes\/class-paypal-express-api.php on line 605<\/p>\n<p>and in this line I have<br \/>\nif (!$order) {<br \/>\n   $order_id = (isset($response[&#8216;PAYMENTREQUESTINFO_0_PAYMENTREQUESTID&#8217;]) ?<br \/>\n   $response[&#8216;PAYMENTREQUESTINFO_0_PAYMENTREQUESTID&#8217;] : &#8221;);<br \/>\n   $order = wc_get_order($order_id);<br \/>\n}<\/p>\n","protected":false},"template":"","class_list":["post-15682468","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15682468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15682468\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15682468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}