This commit is contained in:
Emili Castells Guasch 2025-03-27 09:57:35 +01:00
parent e4ee46e6ee
commit 01adac6101
2 changed files with 6 additions and 6 deletions

View file

@ -316,7 +316,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
// Handle the verification result based on the proceed value. // Handle the verification result based on the proceed value.
switch ( $proceed ) { switch ( $proceed ) {
case ThreeDSecure::PROCCEED: case ThreeDSecure::PROCEED:
// Check was successful. // Check was successful.
return; return;

View file

@ -20,7 +20,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Factory\CardAuthenticationResultFactory
class ThreeDSecure { class ThreeDSecure {
public const NO_DECISION = 0; public const NO_DECISION = 0;
public const PROCCEED = 1; public const PROCEED = 1;
public const REJECT = 2; public const REJECT = 2;
public const RETRY = 3; public const RETRY = 3;
@ -99,7 +99,7 @@ class ThreeDSecure {
$this->logger->info( '3DS Authentication Result: ' . wc_print_r( $result->to_array(), true ) ); $this->logger->info( '3DS Authentication Result: ' . wc_print_r( $result->to_array(), true ) );
if ( $liability === AuthResult::LIABILITY_SHIFT_POSSIBLE ) { if ( $liability === AuthResult::LIABILITY_SHIFT_POSSIBLE ) {
return $this->return_decision( self::PROCCEED, $order ); return $this->return_decision( self::PROCEED, $order );
} }
if ( $liability === AuthResult::LIABILITY_SHIFT_UNKNOWN ) { if ( $liability === AuthResult::LIABILITY_SHIFT_UNKNOWN ) {
@ -140,15 +140,15 @@ class ThreeDSecure {
if ( ! $authentication ) { if ( ! $authentication ) {
if ( $enrollment === AuthResult::ENROLLMENT_STATUS_BYPASS ) { if ( $enrollment === AuthResult::ENROLLMENT_STATUS_BYPASS ) {
return self::PROCCEED; return self::PROCEED;
} }
if ( $enrollment === AuthResult::ENROLLMENT_STATUS_UNAVAILABLE ) { if ( $enrollment === AuthResult::ENROLLMENT_STATUS_UNAVAILABLE ) {
return self::PROCCEED; return self::PROCEED;
} }
if ( $enrollment === AuthResult::ENROLLMENT_STATUS_NO ) { if ( $enrollment === AuthResult::ENROLLMENT_STATUS_NO ) {
return self::PROCCEED; return self::PROCEED;
} }
} }