From 1283587f0699ac1f3012505f2b5824e5a7769e52 Mon Sep 17 00:00:00 2001 From: Kirill Braslavsky Date: Tue, 6 Apr 2021 12:57:07 +0300 Subject: [PATCH] Revert "better check if request id is empty" This reverts commit 8ba75230 --- modules/ppcp-api-client/src/Endpoint/class-orderendpoint.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ppcp-api-client/src/Endpoint/class-orderendpoint.php b/modules/ppcp-api-client/src/Endpoint/class-orderendpoint.php index c9fa93c49..95fd01b8c 100644 --- a/modules/ppcp-api-client/src/Endpoint/class-orderendpoint.php +++ b/modules/ppcp-api-client/src/Endpoint/class-orderendpoint.php @@ -223,8 +223,7 @@ class OrderEndpoint { 'body' => wp_json_encode( $data ), ); - $paypal_request_id = '' === $paypal_request_id ? $this->generate_request_id() : $paypal_request_id; - + $paypal_request_id = $paypal_request_id ?: $this->generate_request_id(); $args['headers']['PayPal-Request-Id'] = $paypal_request_id; if ( $this->bn_code ) { $args['headers']['PayPal-Partner-Attribution-Id'] = $this->bn_code;