mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Do not check signature type on filter
This commit is contained in:
parent
2dc6a6322b
commit
83c3dca560
1 changed files with 9 additions and 1 deletions
|
@ -63,7 +63,15 @@ class OXXO {
|
|||
|
||||
add_filter(
|
||||
'woocommerce_available_payment_gateways',
|
||||
function ( array $methods ): array {
|
||||
/**
|
||||
* Param types removed to avoid third-party issues.
|
||||
*
|
||||
* @psalm-suppress MissingClosureParamType
|
||||
*/
|
||||
function ( $methods ) {
|
||||
if ( ! is_array( $methods ) ) {
|
||||
return $methods;
|
||||
}
|
||||
|
||||
if ( ! $this->checkout_allowed_for_oxxo() ) {
|
||||
unset( $methods[ OXXOGateway::ID ] );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue