Merge pull request #2990 from woocommerce/PCP-4037-bugs-with-sg-hk-workflow

Bugs with SG/HK workflow
This commit is contained in:
Emili Castells 2025-01-23 10:49:21 +01:00 committed by GitHub
commit 5d69f1fba3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,7 +124,7 @@ class VaultingModule implements ServiceModule, ExtendingModule, ExecutableModule
&& ! $is_post // Don't check on POST so we have all payment methods on form submissions. && ! $is_post // Don't check on POST so we have all payment methods on form submissions.
) { ) {
foreach ( $tokens as $index => $token ) { foreach ( $tokens as $index => $token ) {
if ( $token instanceof PaymentTokenApplePay ) { if ( $token instanceof PaymentTokenApplePay || $token instanceof PaymentTokenPayPal || $token instanceof PaymentTokenVenmo ) {
unset( $tokens[ $index ] ); unset( $tokens[ $index ] );
} }
} }