mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Don't filter tokens on changing payment method of a subscription
This commit is contained in:
parent
f6b26a33ac
commit
93398c95b7
1 changed files with 4 additions and 0 deletions
|
@ -128,6 +128,10 @@ class VaultingModule implements ServiceModule, ExtendingModule, ExecutableModule
|
|||
return $tokens;
|
||||
}
|
||||
|
||||
if ( isset( $_GET['change_payment_method'] ) && is_wc_endpoint_url( 'order-pay' ) ) {
|
||||
return $tokens;
|
||||
}
|
||||
|
||||
$is_post = isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] === 'POST';
|
||||
|
||||
// Exclude ApplePay tokens from payment pages.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue