mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Add log entry for no order id in meta
This commit is contained in:
parent
a25eca53bb
commit
cb876633ac
1 changed files with 2 additions and 1 deletions
|
@ -167,7 +167,8 @@ class OrderProcessor {
|
||||||
if ( ! $order ) {
|
if ( ! $order ) {
|
||||||
$order_id = $wc_order->get_meta( PayPalGateway::ORDER_ID_META_KEY );
|
$order_id = $wc_order->get_meta( PayPalGateway::ORDER_ID_META_KEY );
|
||||||
if ( ! $order_id ) {
|
if ( ! $order_id ) {
|
||||||
$this->last_error = __( 'No PayPal order ID found in order meta.', 'woocommerce-paypal-payments' );
|
$this->logger->warning( "No PayPal order ID found in order #{$wc_order->get_id()} meta." );
|
||||||
|
$this->last_error = __( 'Could not retrieve PayPal order.', 'woocommerce-paypal-payments' );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue