Recurly_Invoice::getInvoicePdf PHP Method

getInvoicePdf() public static method

Retrieve the PDF version of an invoice
public static getInvoicePdf ( $invoiceNumber, $locale = null, $client = null )
    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);
    }

Usage Example

 public function testGetInvoicePdf()
 {
     $result = Recurly_Invoice::getInvoicePdf('abcdef1234567890', 'en-GB', $this->client);
     $this->assertEquals(array('/invoices/abcdef1234567890', 'en-GB'), $result);
 }
All Usage Examples Of Recurly_Invoice::getInvoicePdf