application/models/bestitamazonpay4oxidclient.php
public function processOrderReference(oxOrder $oOrder, stdClass $oOrderReference)
    {
        $sOrderReferenceStatus = $oOrderReference
            ->OrderReferenceStatus
            ->State;

        //Do re-authorization if order was suspended and now it's opened
        if ($sOrderReferenceStatus === 'Open'
            && (string)$oOrder->getFieldData('oxtransstatus') === 'AMZ-Order-Suspended'
        ) {
            $this->authorize($oOrder);
        } else {
            $oOrder->assign(array('oxtransstatus' => 'AMZ-Order-'.$sOrderReferenceStatus));
            $oOrder->save();
        }
    }
public function processOrderReference(oxOrder $oOrder, stdClass $oOrderReference)
    {
        $sOrderReferenceStatus = $oOrderReference
            ->OrderReferenceStatus
            ->State;

        //Do re-authorization if order was suspended and now it's opened
        if ($sOrderReferenceStatus === 'Open'
            && (string)$oOrder->getFieldData('oxtransstatus') === 'AMZ-Order-Suspended'
        ) {
            $this->authorize($oOrder);
        } else {
            $oOrder->assign(array('oxtransstatus' => 'AMZ-Order-'.$sOrderReferenceStatus));
            $oOrder->save();
        }
    }
public function processOrderReference ( oxOrder $ oOrder , stdClass $ oOrderReference ) { $ sOrderReferenceStatus = $ oOrderReference -> OrderReferenceStatus -> State ; //Do re-authorization if order was suspended and now it's opened if ( $ sOrderReferenceStatus === 'Open' && ( string ) $ oOrder -> getFieldData ( 'oxtransstatus' ) === 'AMZ-Order-Suspended' ) { $ this -> authorize ( $ oOrder ) ; } else { $ oOrder -> assign ( array ( 'oxtransstatus' => 'AMZ-Order-' . $ sOrderReferenceStatus ) ) ; $ oOrder -> save ( ) ; } }
Process order reference.

@param oxOrder  $oOrder
@param stdClass $oOrderReference
@throws Exception
Process order reference .