ext/bestitamazonpay4oxid_order_overview.php
public function sendorder()
    {
        parent::sendorder();
        /** @var oxOrder $oOrder */
        $oOrder = $this->_getContainer()->getObjectFactory()->createOxidObject('oxOrder');

        if ($oOrder->load($this->getEditObjectId()) === true
            && $oOrder->getFieldData('oxPaymentType') === 'bestitamazon'
        ) {
            $this->_getContainer()->getClient()->saveCapture($oOrder);
        }
    }
public function sendorder()
    {
        parent::sendorder();
        /** @var oxOrder $oOrder */
        $oOrder = $this->_getContainer()->getObjectFactory()->createOxidObject('oxOrder');

        if ($oOrder->load($this->getEditObjectId()) === true
            && $oOrder->getFieldData('oxPaymentType') === 'bestitamazon'
        ) {
            $this->_getContainer()->getClient()->saveCapture($oOrder);
        }
    }
public function sendorder ( ) { parent :: sendorder ( ) ; /** @var oxOrder $oOrder */ $ oOrder = $ this -> _getContainer ( ) -> getObjectFactory ( ) -> createOxidObject ( 'oxOrder' ) ; if ( $ oOrder -> load ( $ this -> getEditObjectId ( ) ) === true && $ oOrder -> getFieldData ( 'oxPaymentType' ) === 'bestitamazon' ) { $ this -> _getContainer ( ) -> getClient ( ) -> saveCapture ( $ oOrder ) ; } }
Capture order after changing it to shipped
@throws Exception
Capture order after changing it to shipped