Model/Action/OrderCaptureAction.php
protected function updateOrder($response, $data)
    {
        $order = $this->getOrder();
        $order->addCapturedAmount($response->getCapturedAmount());
        $order->setPaymentStatus($data->getOrderStatus());
        $order->save();
    }
protected function updateOrder($response, $data)
    {
        $order = $this->getOrder();
        $order->addCapturedAmount($response->getCapturedAmount());
        $order->setPaymentStatus($data->getOrderStatus());
        $order->save();
    }
protected function updateOrder ( $ response , $ data ) { $ order = $ this -> getOrder ( ) ; $ order -> addCapturedAmount ( $ response -> getCapturedAmount ( ) ) ; $ order -> setPaymentStatus ( $ data -> getOrderStatus ( ) ) ; $ order -> save ( ) ; }
Updates order with PayPal response info.

@param object $response
@param object $data
Updates order with PayPal response info .