diff --git a/modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php b/modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php index 7d586a6c8..8749fb4ba 100644 --- a/modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php +++ b/modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php @@ -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; diff --git a/modules/ppcp-button/src/Helper/ThreeDSecure.php b/modules/ppcp-button/src/Helper/ThreeDSecure.php index 0702afd41..dee633fe2 100644 --- a/modules/ppcp-button/src/Helper/ThreeDSecure.php +++ b/modules/ppcp-button/src/Helper/ThreeDSecure.php @@ -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; } }