Revert changes to trunk

This commit is contained in:
Emili Castells Guasch 2023-10-17 12:27:29 +02:00
parent cfa107b588
commit c29fbc4b61
2 changed files with 0 additions and 15 deletions

View file

@ -116,7 +116,6 @@ class PartnerReferralsData {
'REFUND',
'ADVANCED_TRANSACTIONS_SEARCH',
'VAULT',
'BILLING_AGREEMENT',
'TRACKING_SHIPMENT_READWRITE',
),
'seller_nonce' => $this->nonce(),

View file

@ -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;
}
);
}
/**