mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix typo
This commit is contained in:
parent
e4ee46e6ee
commit
01adac6101
2 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue