mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Revert "better check if request id is empty"
This reverts commit 8ba75230
This commit is contained in:
parent
4b31b443fa
commit
1283587f06
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue