mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Improve conditional format
This commit is contained in:
parent
7e575eef5d
commit
4e4fc38077
1 changed files with 4 additions and 2 deletions
|
@ -94,9 +94,11 @@ class IdentityToken {
|
|||
'Content-Type' => 'application/json',
|
||||
),
|
||||
);
|
||||
if ( $customer_id
|
||||
if (
|
||||
$customer_id
|
||||
&& ( $this->settings->has( 'vault_enabled' ) && $this->settings->get( 'vault_enabled' ) )
|
||||
&& defined( 'PPCP_FLAG_SUBSCRIPTION' ) && PPCP_FLAG_SUBSCRIPTION ) {
|
||||
&& defined( 'PPCP_FLAG_SUBSCRIPTION' ) && PPCP_FLAG_SUBSCRIPTION
|
||||
) {
|
||||
$args['body'] = wp_json_encode( array( 'customer_id' => $this->prefix . $customer_id ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue