application/models/bestitamazonpay4oxidclient.php
public function getRefundDetails($sAmazonRefundId)
    {
        //Set default params
        $aRequestParameters['amazon_refund_id'] = $sAmazonRefundId;

        //Make request
        $oData = $this->_convertResponse($this->_getAmazonClient()->getRefundDetails($aRequestParameters));

        //Update/Insert Refund info
        if ((array)$oData !== array()) {
            $sError = '';

            if (isset($oData->Error) === true) {
                $sState = 'Error';
                $sError = $oData->Error->Message;
            } else {
                $sState = $oData->GetRefundDetailsResult->RefundDetails->RefundStatus->State;
            }

            $this->updateRefund($sAmazonRefundId, $sState, $sError);
        }

        return $oData;
    }
public function getRefundDetails($sAmazonRefundId)
    {
        //Set default params
        $aRequestParameters['amazon_refund_id'] = $sAmazonRefundId;

        //Make request
        $oData = $this->_convertResponse($this->_getAmazonClient()->getRefundDetails($aRequestParameters));

        //Update/Insert Refund info
        if ((array)$oData !== array()) {
            $sError = '';

            if (isset($oData->Error) === true) {
                $sState = 'Error';
                $sError = $oData->Error->Message;
            } else {
                $sState = $oData->GetRefundDetailsResult->RefundDetails->RefundStatus->State;
            }

            $this->updateRefund($sAmazonRefundId, $sState, $sError);
        }

        return $oData;
    }
public function getRefundDetails ( $ sAmazonRefundId ) { //Set default params $ aRequestParameters [ 'amazon_refund_id' ] = $ sAmazonRefundId ; //Make request $ oData = $ this -> _convertResponse ( $ this -> _getAmazonClient ( ) -> getRefundDetails ( $ aRequestParameters ) ) ; //Update/Insert Refund info if ( ( array ) $ oData !== array ( ) ) { $ sError = '' ; if ( isset ( $ oData -> Error ) === true ) { $ sState = 'Error' ; $ sError = $ oData -> Error -> Message ; } else { $ sState = $ oData -> GetRefundDetailsResult -> RefundDetails -> RefundStatus -> State ; } $ this -> updateRefund ( $ sAmazonRefundId , $ sState , $ sError ) ; } return $ oData ; }
Amazon GetRefundDetails method

@var string $sAmazonRefundId

@return stdClass
@throws Exception
Amazon GetRefundDetails method