Model/Action/OrderCaptureAction.php
public function process()
    {
        $this->reauthorize();

        $handler = $this->getHandler();

        $response = $handler->getPayPalResponse();
        $data = $handler->getData();

        $this->updateOrder($response, $data);

        $payment = $this->createPayment($response);
        $paymentList = $this->getOrder()->getPaymentList();
        $payment = $paymentList->addPayment($payment);

        $this->addComment($payment, $data->getComment());
    }
public function process()
    {
        $this->reauthorize();

        $handler = $this->getHandler();

        $response = $handler->getPayPalResponse();
        $data = $handler->getData();

        $this->updateOrder($response, $data);

        $payment = $this->createPayment($response);
        $paymentList = $this->getOrder()->getPaymentList();
        $payment = $paymentList->addPayment($payment);

        $this->addComment($payment, $data->getComment());
    }
public function process ( ) { $ this -> reauthorize ( ) ; $ handler = $ this -> getHandler ( ) ; $ response = $ handler -> getPayPalResponse ( ) ; $ data = $ handler -> getData ( ) ; $ this -> updateOrder ( $ response , $ data ) ; $ payment = $ this -> createPayment ( $ response ) ; $ paymentList = $ this -> getOrder ( ) -> getPaymentList ( ) ; $ payment = $ paymentList -> addPayment ( $ payment ) ; $ this -> addComment ( $ payment , $ data -> getComment ( ) ) ; }
Processes PayPal response.
Processes PayPal response .