mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Hide venmo when store location is not united states
This commit is contained in:
parent
8545689e78
commit
de475ed0ec
1 changed files with 4 additions and 0 deletions
|
@ -274,6 +274,10 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
|||
unset( $payment_methods['ppcp-card-button-gateway'] );
|
||||
}
|
||||
|
||||
if ( $container->get( 'api.shop.country' ) !== 'US' ) {
|
||||
unset( $payment_methods['venmo'] );
|
||||
}
|
||||
|
||||
return $payment_methods;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue