lib/recurly/gift_card.php
public function redeem($accountCode) {
    $doc = $this->createDocument();
    $root = $doc->appendChild($doc->createElement('recipient_account'));
    $root->appendChild($doc->createElement('account_code', $accountCode));
    $uri = Recurly_GiftCard::uriForGiftCard($this->redemption_code) . '/redeem';

    $this->_save(Recurly_Client::POST, $uri, $this->renderXML($doc));
  }
public function redeem($accountCode) {
    $doc = $this->createDocument();
    $root = $doc->appendChild($doc->createElement('recipient_account'));
    $root->appendChild($doc->createElement('account_code', $accountCode));
    $uri = Recurly_GiftCard::uriForGiftCard($this->redemption_code) . '/redeem';

    $this->_save(Recurly_Client::POST, $uri, $this->renderXML($doc));
  }
public function redeem ( $ accountCode ) { $ doc = $ this -> createDocument ( ) ; $ root = $ doc -> appendChild ( $ doc -> createElement ( 'recipient_account' ) ) ; $ root -> appendChild ( $ doc -> createElement ( 'account_code' , $ accountCode ) ) ; $ uri = Recurly_GiftCard :: uriForGiftCard ( $ this -> redemption_code ) . '/redeem' ; $ this -> _save ( Recurly_Client :: POST , $ uri , $ this -> renderXML ( $ doc ) ) ; }
Redeem a gift card given an account code

@param string $accountCode The account code

@throws Recurly_Error
Redeem a gift card given an account code