invoice pdf - fix url
MODIFY
src/integration/billing/stripe/StripeBillingIntegration.ts
src/integration/billing/stripe/StripeBillingIntegration.ts
@@ -371,9 +371,9 @@ export default class StripeBillingIntegration extends BillingIntegration {
public async downloadInvoiceDocument(invoice: BillingInvoice): Promise<Buffer> {
if (invoice.downloadUrl) {
await this.checkConnection();
- // Get fresh data becausse persisted url expires after 30 days
+ // Get fresh data because persisted url expires after 30 days
const stripeInvoice = await this.getStripeInvoice(invoice.invoiceID);
- const downloadUrl = stripeInvoice.hosted_invoice_url;
+ const downloadUrl = stripeInvoice.invoice_pdf;
// Get document
const response = await this.axiosInstance.get(downloadUrl, {
responseType: 'arraybuffer'

invoice pdf - fix url