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.
switch ( $proceed ) {
case ThreeDSecure::PROCCEED:
case ThreeDSecure::PROCEED:
// Check was successful.
return;

View file

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