public function createPlan()
    {
        $data = [
            "name" => request()->name,
            "description" => request()->desc,
            "amount" => intval(request()->amount),
            "interval" => request()->interval,
            "send_invoices" => request()->send_invoices,
            "send_sms" => request()->send_sms,
            "currency" => request()->currency,
        ];

        $this->setRequestOptions();

        $this->setHttpResponse("/plan", 'POST', $data);

    }
public function createPlan()
    {
        $data = [
            "name" => request()->name,
            "description" => request()->desc,
            "amount" => intval(request()->amount),
            "interval" => request()->interval,
            "send_invoices" => request()->send_invoices,
            "send_sms" => request()->send_sms,
            "currency" => request()->currency,
        ];

        $this->setRequestOptions();

        $this->setHttpResponse("/plan", 'POST', $data);

    }
public function createPlan ( ) { $ data = [ "name" => request ( ) -> name , "description" => request ( ) -> desc , "amount" => intval ( request ( ) -> amount ) , "interval" => request ( ) -> interval , "send_invoices" => request ( ) -> send_invoices , "send_sms" => request ( ) -> send_sms , "currency" => request ( ) -> currency , ] ; $ this -> setRequestOptions ( ) ; $ this -> setHttpResponse ( "/plan" , 'POST' , $ data ) ; }
Create a plan
Create a plan