application/models/bestitamazonpay4oxidclient.php
public function authorize($oOrder = null, $aRequestParameters = array(), $blForceSync = false)
    {
        $sMode = $this->getConfig()->getConfigParam('sAmazonMode');
        $aRequestParameters['transaction_timeout'] =
            ($sMode === bestitAmazonPay4OxidClient::BASIC_FLOW || $blForceSync) ? 0 : 1440;

        $oData = $this->_callOrderRequest(
            'authorize',
            $oOrder,
            $aRequestParameters,
            array(
                'amazon_order_reference_id',
                'authorization_amount',
                'currency_code',
                'authorization_reference_id',
                'seller_authorization_note'
            ),
            $blProcessable
        );

        //Update Order info
        if ($blProcessable === true
            && isset($oData->AuthorizeResult->AuthorizationDetails->AuthorizationStatus->State)
        ) {
            $oDetails = $oData->AuthorizeResult->AuthorizationDetails;
            $oOrder->assign(array(
                'bestitamazonauthorizationid' => $oDetails->AmazonAuthorizationId,
                'oxtransstatus' => 'AMZ-Authorize-'.$oDetails->AuthorizationStatus->State
            ));
            $oOrder->save();
        }

        return $oData;
    }
public function authorize($oOrder = null, $aRequestParameters = array(), $blForceSync = false)
    {
        $sMode = $this->getConfig()->getConfigParam('sAmazonMode');
        $aRequestParameters['transaction_timeout'] =
            ($sMode === bestitAmazonPay4OxidClient::BASIC_FLOW || $blForceSync) ? 0 : 1440;

        $oData = $this->_callOrderRequest(
            'authorize',
            $oOrder,
            $aRequestParameters,
            array(
                'amazon_order_reference_id',
                'authorization_amount',
                'currency_code',
                'authorization_reference_id',
                'seller_authorization_note'
            ),
            $blProcessable
        );

        //Update Order info
        if ($blProcessable === true
            && isset($oData->AuthorizeResult->AuthorizationDetails->AuthorizationStatus->State)
        ) {
            $oDetails = $oData->AuthorizeResult->AuthorizationDetails;
            $oOrder->assign(array(
                'bestitamazonauthorizationid' => $oDetails->AmazonAuthorizationId,
                'oxtransstatus' => 'AMZ-Authorize-'.$oDetails->AuthorizationStatus->State
            ));
            $oOrder->save();
        }

        return $oData;
    }
public function authorize ( $ oOrder = null , $ aRequestParameters = array ( ) , $ blForceSync = false ) { $ sMode = $ this -> getConfig ( ) -> getConfigParam ( 'sAmazonMode' ) ; $ aRequestParameters [ 'transaction_timeout' ] = ( $ sMode === bestitAmazonPay4OxidClient :: BASIC_FLOW || $ blForceSync ) ? 0 : 1440 ; $ oData = $ this -> _callOrderRequest ( 'authorize' , $ oOrder , $ aRequestParameters , array ( 'amazon_order_reference_id' , 'authorization_amount' , 'currency_code' , 'authorization_reference_id' , 'seller_authorization_note' ) , $ blProcessable ) ; //Update Order info if ( $ blProcessable === true && isset ( $ oData -> AuthorizeResult -> AuthorizationDetails -> AuthorizationStatus -> State ) ) { $ oDetails = $ oData -> AuthorizeResult -> AuthorizationDetails ; $ oOrder -> assign ( array ( 'bestitamazonauthorizationid' => $ oDetails -> AmazonAuthorizationId , 'oxtransstatus' => 'AMZ-Authorize-' . $ oDetails -> AuthorizationStatus -> State ) ) ; $ oOrder -> save ( ) ; } return $ oData ; }
Amazon Authorize method

@param oxOrder $oOrder             OXID Order object
@param array   $aRequestParameters Custom parameters to send
@param bool    $blForceSync        If true we force the sync mode

@return stdClass
@throws Exception
Amazon Authorize method