/** * Retrieve the PDF version of an invoice */ 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 */ public static function getInvoicePdf($invoiceNumber, $locale = null, $client = null) { $uri = Recurly_Client::PATH_INVOICES . '/' . rawurlencode($invoiceNumber); if (is_null($client)) { $client = new Recurly_Client(); } return $client->getPdf($uri, $locale); }