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;