The meta _ppcp_paypal_order_id in WC_Order is empty
-
Hello,
I get the “Could not retrieve order” in /checkout page while I am doing a simple buy.
Looking for it in the code I found it in OrderEndpoint and it happens because the url is being composed without the order id.
$url = trailingslashit( $this->host ) . 'v2/checkout/orders/' . $id;
Checking it with debug_backtrace I found that is being called from OrderProcessor
$order_id = $wc_order->get_meta( PayPalGateway::ORDER_ID_META_KEY ); $order = $this->session_handler->order() ?? $this->order_endpoint->order( $order_id );
And so I knew that the meta is empty.
The question is … Why? What is not happening?
I found three points where the meta is updated. CreateOrderEndpoint, EarlyOrderHandler and OrderMetaTrait but … it’s for me impossible to guess or to find out which would be the right behaviour. What should have call what else in which moment…
Can someone help me, please?
- The topic ‘The meta _ppcp_paypal_order_id in WC_Order is empty’ is closed to new replies.