lib/AktiveMerchant/Billing/Gateways/FatZebra.php
public function updatePlan($plan_id, array $attrs = array())
    {
        $this->post = array();
        $attrs = new Options($attrs);
        $plan_id = urlencode(trim($plan_id));

        if ($attrs->name) {
            $this->post['name'] = $attrs->name;
        }

        if ($attrs->description) {
            $this->post['description'] = $attrs->description;
        }

        return $this->commit("plans/{$plan_id}", RequestInterface::METHOD_PUT);
    }
public function updatePlan($plan_id, array $attrs = array())
    {
        $this->post = array();
        $attrs = new Options($attrs);
        $plan_id = urlencode(trim($plan_id));

        if ($attrs->name) {
            $this->post['name'] = $attrs->name;
        }

        if ($attrs->description) {
            $this->post['description'] = $attrs->description;
        }

        return $this->commit("plans/{$plan_id}", RequestInterface::METHOD_PUT);
    }
public function updatePlan ( $ plan_id , array $ attrs = array ( ) ) { $ this -> post = array ( ) ; $ attrs = new Options ( $ attrs ) ; $ plan_id = urlencode ( trim ( $ plan_id ) ) ; if ( $ attrs -> name ) { $ this -> post [ 'name' ] = $ attrs -> name ; } if ( $ attrs -> description ) { $ this -> post [ 'description' ] = $ attrs -> description ; } return $ this -> commit ( "plans/{$plan_id}" , RequestInterface :: METHOD_PUT ) ; }
Update attributes of a plan.

Valid attributes are name and or description.

<code>
$attrs = array(
'name' => 'New Name',
'description' => 'New description'
);
</code>
@param string $plan_id The plan id of a plant to update.
@param array  $attrs   An array holding the attributes to update
@return Response
Update attributes of a plan .