mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix phpcs
This commit is contained in:
parent
3a84cc76c3
commit
842506e554
2 changed files with 15 additions and 15 deletions
|
@ -349,25 +349,25 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule {
|
|||
}
|
||||
);
|
||||
|
||||
// Remove Fastlane on the Pay for Order page.
|
||||
add_filter(
|
||||
'woocommerce_available_payment_gateways',
|
||||
// Remove Fastlane on the Pay for Order page.
|
||||
add_filter(
|
||||
'woocommerce_available_payment_gateways',
|
||||
/**
|
||||
* Param types removed to avoid third-party issues.
|
||||
*
|
||||
* @psalm-suppress MissingClosureParamType
|
||||
*/
|
||||
static function ( $methods ) {
|
||||
if ( ! is_array( $methods ) || ! is_wc_endpoint_url( 'order-pay' ) ) {
|
||||
return $methods;
|
||||
}
|
||||
static function ( $methods ) {
|
||||
if ( ! is_array( $methods ) || ! is_wc_endpoint_url( 'order-pay' ) ) {
|
||||
return $methods;
|
||||
}
|
||||
|
||||
// Remove Fastlane if present.
|
||||
unset( $methods[AxoGateway::ID] );
|
||||
// Remove Fastlane if present.
|
||||
unset( $methods[ AxoGateway::ID ] );
|
||||
|
||||
return $methods;
|
||||
}
|
||||
);
|
||||
return $methods;
|
||||
}
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Factory\CardAuthenticationResultFactory
|
|||
class ThreeDSecure {
|
||||
|
||||
const NO_DECISION = 0;
|
||||
const PROCEED = 1;
|
||||
const PROCEED = 1;
|
||||
const REJECT = 2;
|
||||
const RETRY = 3;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue