mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Revert changes to trunk
This commit is contained in:
parent
cfa107b588
commit
c29fbc4b61
2 changed files with 0 additions and 15 deletions
|
@ -116,7 +116,6 @@ class PartnerReferralsData {
|
|||
'REFUND',
|
||||
'ADVANCED_TRANSACTIONS_SEARCH',
|
||||
'VAULT',
|
||||
'BILLING_AGREEMENT',
|
||||
'TRACKING_SHIPMENT_READWRITE',
|
||||
),
|
||||
'seller_nonce' => $this->nonce(),
|
||||
|
|
|
@ -198,20 +198,6 @@ class VaultingModule implements ModuleInterface {
|
|||
return $methods;
|
||||
}
|
||||
);
|
||||
|
||||
add_filter(
|
||||
'ppcp_partner_referrals_data',
|
||||
function ( array $data ): array {
|
||||
if ( in_array( 'PPCP', $data['products'], true ) ) {
|
||||
$data['products'][] = 'ADVANCED_VAULTING';
|
||||
} elseif ( in_array( 'EXPRESS_CHECKOUT', $data['products'], true ) ) {
|
||||
$data['products'][0] = 'ADVANCED_VAULTING';
|
||||
}
|
||||
$data['capabilities'][] = 'PAYPAL_WALLET_VAULTING_ADVANCED';
|
||||
|
||||
return $data;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue