mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +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.
|
// Remove Fastlane on the Pay for Order page.
|
||||||
add_filter(
|
add_filter(
|
||||||
'woocommerce_available_payment_gateways',
|
'woocommerce_available_payment_gateways',
|
||||||
/**
|
/**
|
||||||
* Param types removed to avoid third-party issues.
|
* Param types removed to avoid third-party issues.
|
||||||
*
|
*
|
||||||
* @psalm-suppress MissingClosureParamType
|
* @psalm-suppress MissingClosureParamType
|
||||||
*/
|
*/
|
||||||
static function ( $methods ) {
|
static function ( $methods ) {
|
||||||
if ( ! is_array( $methods ) || ! is_wc_endpoint_url( 'order-pay' ) ) {
|
if ( ! is_array( $methods ) || ! is_wc_endpoint_url( 'order-pay' ) ) {
|
||||||
return $methods;
|
return $methods;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove Fastlane if present.
|
// Remove Fastlane if present.
|
||||||
unset( $methods[AxoGateway::ID] );
|
unset( $methods[ AxoGateway::ID ] );
|
||||||
|
|
||||||
return $methods;
|
return $methods;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Factory\CardAuthenticationResultFactory
|
||||||
class ThreeDSecure {
|
class ThreeDSecure {
|
||||||
|
|
||||||
const NO_DECISION = 0;
|
const NO_DECISION = 0;
|
||||||
const PROCEED = 1;
|
const PROCEED = 1;
|
||||||
const REJECT = 2;
|
const REJECT = 2;
|
||||||
const RETRY = 3;
|
const RETRY = 3;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue