src/Paystack.php
public function updatePlan($plan_code)
    {
        $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();
        return $this->setHttpResponse('/plan/' . $plan_code, 'PUT', $data)->getResponse();
    }
public function updatePlan($plan_code)
    {
        $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();
        return $this->setHttpResponse('/plan/' . $plan_code, 'PUT', $data)->getResponse();
    }
public function updatePlan ( $ plan_code ) { $ 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 ( ) ; return $ this -> setHttpResponse ( '/plan/' . $ plan_code , 'PUT' , $ data ) -> getResponse ( ) ; }
Update any plan's details based on its id or code
@param $plan_code
@return array
Update any plan s details based on its id or code