public function reactivate($customerId, $subscriptionId, array $attributes = [])
    {
        if (! isset($attributes['plan'])) {
            $subscription = $this->find($customerId, $subscriptionId);

            $attributes['plan'] = $subscription['plan']['id'];
        }

        return $this->update($customerId, $subscriptionId, $attributes);
    }
public function reactivate($customerId, $subscriptionId, array $attributes = [])
    {
        if (! isset($attributes['plan'])) {
            $subscription = $this->find($customerId, $subscriptionId);

            $attributes['plan'] = $subscription['plan']['id'];
        }

        return $this->update($customerId, $subscriptionId, $attributes);
    }
public function reactivate ( $ customerId , $ subscriptionId , array $ attributes = [ ] ) { if ( ! isset ( $ attributes [ 'plan' ] ) ) { $ subscription = $ this -> find ( $ customerId , $ subscriptionId ) ; $ attributes [ 'plan' ] = $ subscription [ 'plan' ] [ 'id' ] ; } return $ this -> update ( $ customerId , $ subscriptionId , $ attributes ) ; }
Reactivates an existing canceled subscription from the given customer.

@param  string  $customerId
@param  string  $subscriptionId
@param  array  $attributes
@return array
Reactivates an existing canceled subscription from the given customer .