public function resetBalance($subscriptionId)
    {
        $service = $this->getService();
        $response = $service->request('subscriptions/' . (int)$subscriptionId . '/reset_balance', 'GET');
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['subscription'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function resetBalance($subscriptionId)
    {
        $service = $this->getService();
        $response = $service->request('subscriptions/' . (int)$subscriptionId . '/reset_balance', 'GET');
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['subscription'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function resetBalance ( $ subscriptionId ) { $ service = $ this -> getService ( ) ; $ response = $ service -> request ( 'subscriptions/' . ( int ) $ subscriptionId . '/reset_balance' , 'GET' ) ; $ responseArray = $ this -> getResponseArray ( $ response ) ; if ( ! $ this -> isError ( ) ) { $ this -> _data = $ responseArray [ 'subscription' ] ; } else { $ this -> _data = array ( ) ; } return $ this ; }
Chargify offers the ability to easily reset the balance of a subscription
to zero. If a subscription has a positive balance, this API call will
issue a credit to the subscription for the outstanding balance. This
is particularly helpful if you want to reactivate a canceled subscription
without charging the customer for their previously owed balance.

@param int $subscriptionId

@return Subscription
Chargify offers the ability to easily reset the balance of a subscription to zero . If a subscription has a positive balance this API call will issue a credit to the subscription for the outstanding balance . This is particularly helpful if you want to reactivate a canceled subscription without charging the customer for their previously owed balance .