public function getData()
    {
        if (! $this->getReturnUrl()) {
            $this->validate('notifyUrl');
        }

        $data = $this->getBaseAuthorizeData();

        // If a token is being used, then include the token data.
        // With a valid token or card reference, the user is just asked
        // for the CVV and not any remaining card details.

        $data = $this->getTokenData($data);

        // ReturnUrl is for legacy usage.

        $data['NotificationURL'] = $this->getNotifyUrl() ?: $this->getReturnUrl();

        // Set the profile only if it is LOW (for iframe use) or NORMAL (for full-page redirects)

        $profile = strtoupper($this->getProfile());

        if ($profile === static::PROFILE_NORMAL || $profile === static::PROFILE_LOW) {
            $data['Profile'] = $this->getProfile();
        }

        $createCard = $this->getCreateToken() ?: $this->getCreateCard();

        if ($createCard !== null) {
            $data['CreateToken'] = $createCard ? static::CREATE_TOKEN_YES : static::CREATE_TOKEN_NO;
        }

        return $data;
    }
public function getData()
    {
        if (! $this->getReturnUrl()) {
            $this->validate('notifyUrl');
        }

        $data = $this->getBaseAuthorizeData();

        // If a token is being used, then include the token data.
        // With a valid token or card reference, the user is just asked
        // for the CVV and not any remaining card details.

        $data = $this->getTokenData($data);

        // ReturnUrl is for legacy usage.

        $data['NotificationURL'] = $this->getNotifyUrl() ?: $this->getReturnUrl();

        // Set the profile only if it is LOW (for iframe use) or NORMAL (for full-page redirects)

        $profile = strtoupper($this->getProfile());

        if ($profile === static::PROFILE_NORMAL || $profile === static::PROFILE_LOW) {
            $data['Profile'] = $this->getProfile();
        }

        $createCard = $this->getCreateToken() ?: $this->getCreateCard();

        if ($createCard !== null) {
            $data['CreateToken'] = $createCard ? static::CREATE_TOKEN_YES : static::CREATE_TOKEN_NO;
        }

        return $data;
    }
public function getData ( ) { if ( ! $ this -> getReturnUrl ( ) ) { $ this -> validate ( 'notifyUrl' ) ; } $ data = $ this -> getBaseAuthorizeData ( ) ; // If a token is being used, then include the token data. // With a valid token or card reference, the user is just asked // for the CVV and not any remaining card details. $ data = $ this -> getTokenData ( $ data ) ; // ReturnUrl is for legacy usage. $ data [ 'NotificationURL' ] = $ this -> getNotifyUrl ( ) ? : $ this -> getReturnUrl ( ) ; // Set the profile only if it is LOW (for iframe use) or NORMAL (for full-page redirects) $ profile = strtoupper ( $ this -> getProfile ( ) ) ; if ( $ profile === static :: PROFILE_NORMAL || $ profile === static :: PROFILE_LOW ) { $ data [ 'Profile' ] = $ this -> getProfile ( ) ; } $ createCard = $ this -> getCreateToken ( ) ? : $ this -> getCreateCard ( ) ; if ( $ createCard !== null ) { $ data [ 'CreateToken' ] = $ createCard ? static :: CREATE_TOKEN_YES : static :: CREATE_TOKEN_NO ; } return $ data ; }
Add the optional token details to the base data.
The returnUrl is supported for legacy applications not using the notifyUrl.

@return array
Add the optional token details to the base data . The returnUrl is supported for legacy applications not using the notifyUrl .