src/Payum/Stripe/Action/Api/CreatePlanAction.php
public function execute($request)
    {
        /** @var $request CreatePlan */
        RequestNotSupportedException::assertSupports($this, $request);

        $model = ArrayObject::ensureArrayObject($request->getModel());

        try {
            Stripe::setApiKey($this->keys->getSecretKey());

            $plan = Plan::create($model->toUnsafeArrayWithoutLocal());

            $model->replace($plan->__toArray(true));
        } catch (Error\Base $e) {
            $model->replace($e->getJsonBody());
        }
    }
public function execute($request)
    {
        /** @var $request CreatePlan */
        RequestNotSupportedException::assertSupports($this, $request);

        $model = ArrayObject::ensureArrayObject($request->getModel());

        try {
            Stripe::setApiKey($this->keys->getSecretKey());

            $plan = Plan::create($model->toUnsafeArrayWithoutLocal());

            $model->replace($plan->__toArray(true));
        } catch (Error\Base $e) {
            $model->replace($e->getJsonBody());
        }
    }
{@inheritDoc}