src/Payum/Paypal/Rest/Action/SyncAction.php
public function execute($request)
    {
        /** @var $request Sync */
        RequestNotSupportedException::assertSupports($this, $request);

        /** @var PaypalPayment $model */
        $model = $request->getModel();

        $payment = PaypalPayment::get($model->id);

        $model->fromArray($payment->toArray());
    }
public function execute($request)
    {
        /** @var $request Sync */
        RequestNotSupportedException::assertSupports($this, $request);

        /** @var PaypalPayment $model */
        $model = $request->getModel();

        $payment = PaypalPayment::get($model->id);

        $model->fromArray($payment->toArray());
    }
{@inheritDoc}