src/Payum/Paypal/ExpressCheckout/Nvp/Action/CancelRecurringPaymentsProfileAction.php
public function execute($request)
    {
        /** @var $request Cancel */
        RequestNotSupportedException::assertSupports($this, $request);

        $model = ArrayObject::ensureArrayObject($request->getModel());
        $model->validateNotEmpty(array('PROFILEID', 'BILLINGPERIOD'));

        $cancelDetails = new ArrayObject([
            'PROFILEID' => $model['PROFILEID'],
            'ACTION' => Api::RECURRINGPAYMENTACTION_CANCEL,
        ]);

        $this->gateway->execute(new ManageRecurringPaymentsProfileStatus($cancelDetails));
        $this->gateway->execute(new Sync($request->getModel()));
    }
public function execute($request)
    {
        /** @var $request Cancel */
        RequestNotSupportedException::assertSupports($this, $request);

        $model = ArrayObject::ensureArrayObject($request->getModel());
        $model->validateNotEmpty(array('PROFILEID', 'BILLINGPERIOD'));

        $cancelDetails = new ArrayObject([
            'PROFILEID' => $model['PROFILEID'],
            'ACTION' => Api::RECURRINGPAYMENTACTION_CANCEL,
        ]);

        $this->gateway->execute(new ManageRecurringPaymentsProfileStatus($cancelDetails));
        $this->gateway->execute(new Sync($request->getModel()));
    }
{@inheritDoc}