lib/recurly/invoice.php
public static function getInvoicePdf($invoiceNumber, $locale = null, $client = null) {
    $uri = self::uriForInvoice($invoiceNumber);

    if (is_null($client))
      $client = new Recurly_Client();

    return $client->getPdf($uri, $locale);
  }
public static function getInvoicePdf($invoiceNumber, $locale = null, $client = null) {
    $uri = self::uriForInvoice($invoiceNumber);

    if (is_null($client))
      $client = new Recurly_Client();

    return $client->getPdf($uri, $locale);
  }
public static function getInvoicePdf ( $ invoiceNumber , $ locale = null , $ client = null ) { $ uri = self :: uriForInvoice ( $ invoiceNumber ) ; if ( is_null ( $ client ) ) $ client = new Recurly_Client ( ) ; return $ client -> getPdf ( $ uri , $ locale ) ; }
Retrieve the PDF version of an invoice

@param $invoiceNumber
@param string $locale
@param Recurly_Client $client Optional client for the request, useful for mocking the client
@return string A binary string of pdf data
@throws Recurly_Error
Retrieve the PDF version of an invoice