application/models/bestitamazonpay4oxidclient.php
public function setOrderReferenceDetails($oBasket = null, array $aRequestParameters = array())
    {
        //Set default params
        $aRequestParameters['amazon_order_reference_id'] = $this->getSession()->getVariable('amazonOrderReferenceId');

        if ($oBasket !== null) {
            $oActiveShop = $this->getConfig()->getActiveShop();
            $sShopName = $oActiveShop->getFieldData('oxname');
            $sOxidVersion = $oActiveShop->getFieldData('oxversion');
            $sModuleVersion = bestitAmazonPay4Oxid_init::getCurrentVersion();

            $aRequestParameters = array_merge(
                $aRequestParameters,
                array(
                    'amount' => $oBasket->getPrice()->getBruttoPrice(),
                    'currency_code' => $oBasket->getBasketCurrency()->name,
                    'platform_id' => 'A26EQAZK19E0U2',
                    'store_name' => $sShopName,
                    'custom_information' => "created by best it, OXID eShop v{$sOxidVersion}, v{$sModuleVersion}"
                )
            );
        }

        $this->_addSandboxSimulationParams('setOrderReferenceDetails', $aRequestParameters);

        return $this->_convertResponse($this->_getAmazonClient()->setOrderReferenceDetails($aRequestParameters));
    }
public function setOrderReferenceDetails($oBasket = null, array $aRequestParameters = array())
    {
        //Set default params
        $aRequestParameters['amazon_order_reference_id'] = $this->getSession()->getVariable('amazonOrderReferenceId');

        if ($oBasket !== null) {
            $oActiveShop = $this->getConfig()->getActiveShop();
            $sShopName = $oActiveShop->getFieldData('oxname');
            $sOxidVersion = $oActiveShop->getFieldData('oxversion');
            $sModuleVersion = bestitAmazonPay4Oxid_init::getCurrentVersion();

            $aRequestParameters = array_merge(
                $aRequestParameters,
                array(
                    'amount' => $oBasket->getPrice()->getBruttoPrice(),
                    'currency_code' => $oBasket->getBasketCurrency()->name,
                    'platform_id' => 'A26EQAZK19E0U2',
                    'store_name' => $sShopName,
                    'custom_information' => "created by best it, OXID eShop v{$sOxidVersion}, v{$sModuleVersion}"
                )
            );
        }

        $this->_addSandboxSimulationParams('setOrderReferenceDetails', $aRequestParameters);

        return $this->_convertResponse($this->_getAmazonClient()->setOrderReferenceDetails($aRequestParameters));
    }
public function setOrderReferenceDetails ( $ oBasket = null , array $ aRequestParameters = array ( ) ) { //Set default params $ aRequestParameters [ 'amazon_order_reference_id' ] = $ this -> getSession ( ) -> getVariable ( 'amazonOrderReferenceId' ) ; if ( $ oBasket !== null ) { $ oActiveShop = $ this -> getConfig ( ) -> getActiveShop ( ) ; $ sShopName = $ oActiveShop -> getFieldData ( 'oxname' ) ; $ sOxidVersion = $ oActiveShop -> getFieldData ( 'oxversion' ) ; $ sModuleVersion = bestitAmazonPay4Oxid_init :: getCurrentVersion ( ) ; $ aRequestParameters = array_merge ( $ aRequestParameters , array ( 'amount' => $ oBasket -> getPrice ( ) -> getBruttoPrice ( ) , 'currency_code' => $ oBasket -> getBasketCurrency ( ) -> name , 'platform_id' => 'A26EQAZK19E0U2' , 'store_name' => $ sShopName , 'custom_information' => "created by best it, OXID eShop v{$sOxidVersion}, v{$sModuleVersion}" ) ) ; } $ this -> _addSandboxSimulationParams ( 'setOrderReferenceDetails' , $ aRequestParameters ) ; return $ this -> _convertResponse ( $ this -> _getAmazonClient ( ) -> setOrderReferenceDetails ( $ aRequestParameters ) ) ; }
Amazon SetOrderReferenceDetails method

@param oxBasket $oBasket            OXID Basket object
@param array    $aRequestParameters Custom parameters to send

@return stdClass
@throws Exception
Amazon SetOrderReferenceDetails method