lib/recurly/subscription.php
public function pause($remaining_pause_cycles) {
    $doc = $this->createDocument();
    $root = $doc->appendChild($doc->createElement($this->getNodeName()));
    $root->appendChild($doc->createElement('remaining_pause_cycles', $remaining_pause_cycles));
    $this->_save(Recurly_Client::PUT, $this->uri() . '/pause', $this->renderXML($doc));
  }
public function pause($remaining_pause_cycles) {
    $doc = $this->createDocument();
    $root = $doc->appendChild($doc->createElement($this->getNodeName()));
    $root->appendChild($doc->createElement('remaining_pause_cycles', $remaining_pause_cycles));
    $this->_save(Recurly_Client::PUT, $this->uri() . '/pause', $this->renderXML($doc));
  }
public function pause ( $ remaining_pause_cycles ) { $ doc = $ this -> createDocument ( ) ; $ root = $ doc -> appendChild ( $ doc -> createElement ( $ this -> getNodeName ( ) ) ) ; $ root -> appendChild ( $ doc -> createElement ( 'remaining_pause_cycles' , $ remaining_pause_cycles ) ) ; $ this -> _save ( Recurly_Client :: PUT , $ this -> uri ( ) . '/pause' , $ this -> renderXML ( $ doc ) ) ; }
Pauses a subscription or cancels a scheduled pause.

- For an active subscription without a pause scheduled already,
this will schedule a pause period to begin at the next renewal
date for the specified number of billing cycles (remaining_pause_cycles).
- For an active subscription with a scheduled pause, this will update the remaining
pause cycles with the new value sent. When zero (0) remaining_pause_cycles
is sent for a subscription with a scheduled pause, the pause will be canceled.
- For a paused subscription, the remaining_pause_cycles will adjust the
length of the current pause period. Sending zero (0) in the remaining_pause_cycles
field will cause the subscription to be resumed at the next renewal date.

@param integer $remaining_pause_cycles The number of billing cycles that the subscription will be paused.
@throws Recurly_Error
Pauses a subscription or cancels a scheduled pause .