public function verifyEnrolled($amount, $currency, $orderId = null)
    {
        $response = (new AuthorizationBuilder(TransactionType::VERIFY_ENROLLED, $this))
            ->withAmount($amount)
            ->withCurrency($currency)
            ->withOrderId($orderId)
            ->execute();

        if (!empty($response->threeDSecure)) {
            $secureEcom = $response->threeDSecure;
            $secureEcom->setAmount($amount);
            $secureEcom->setCurrency($currency);
            $secureEcom->setOrderId($response->orderId);
            $this->threeDSecure = $secureEcom;

            if (in_array($this->threeDSecure->enrolled, array('N', 'U'))) {
                $this->threeDSecure->xid = null;
                if ($this->threeDSecure->enrolled == 'N') {
                    $this->threeDSecure->eci = $this->cardType == 'MC' ? 1 : 6;
                } elseif ($this->threeDSecure->enrolled == 'U') {
                    $this->threeDSecure->eci = $this->cardType == 'MC' ? 0 : 7;
                }
            }

            return $this->threeDSecure->enrolled == 'Y';
        }
        return false;
    }
public function verifyEnrolled($amount, $currency, $orderId = null)
    {
        $response = (new AuthorizationBuilder(TransactionType::VERIFY_ENROLLED, $this))
            ->withAmount($amount)
            ->withCurrency($currency)
            ->withOrderId($orderId)
            ->execute();

        if (!empty($response->threeDSecure)) {
            $secureEcom = $response->threeDSecure;
            $secureEcom->setAmount($amount);
            $secureEcom->setCurrency($currency);
            $secureEcom->setOrderId($response->orderId);
            $this->threeDSecure = $secureEcom;

            if (in_array($this->threeDSecure->enrolled, array('N', 'U'))) {
                $this->threeDSecure->xid = null;
                if ($this->threeDSecure->enrolled == 'N') {
                    $this->threeDSecure->eci = $this->cardType == 'MC' ? 1 : 6;
                } elseif ($this->threeDSecure->enrolled == 'U') {
                    $this->threeDSecure->eci = $this->cardType == 'MC' ? 0 : 7;
                }
            }

            return $this->threeDSecure->enrolled == 'Y';
        }
        return false;
    }
public function verifyEnrolled ( $ amount , $ currency , $ orderId = null ) { $ response = ( new AuthorizationBuilder ( TransactionType :: VERIFY_ENROLLED , $ this ) ) -> withAmount ( $ amount ) -> withCurrency ( $ currency ) -> withOrderId ( $ orderId ) -> execute ( ) ; if ( ! empty ( $ response -> threeDSecure ) ) { $ secureEcom = $ response -> threeDSecure ; $ secureEcom -> setAmount ( $ amount ) ; $ secureEcom -> setCurrency ( $ currency ) ; $ secureEcom -> setOrderId ( $ response -> orderId ) ; $ this -> threeDSecure = $ secureEcom ; if ( in_array ( $ this -> threeDSecure -> enrolled , array ( 'N' , 'U' ) ) ) { $ this -> threeDSecure -> xid = null ; if ( $ this -> threeDSecure -> enrolled == 'N' ) { $ this -> threeDSecure -> eci = $ this -> cardType == 'MC' ? 1 : 6 ; } elseif ( $ this -> threeDSecure -> enrolled == 'U' ) { $ this -> threeDSecure -> eci = $ this -> cardType == 'MC' ? 0 : 7 ; } } return $ this -> threeDSecure -> enrolled == 'Y' ; } return false ; }
Verify whether the cardholder is enrolled in 3DS

@return bool
Verify whether the cardholder is enrolled in 3DS