Skip to content

Commit

Permalink
Merge pull request #3441 from sap-labs-france/master-qa
Browse files Browse the repository at this point in the history
invoice pdf - fix url
  • Loading branch information
Claude ROSSI authored Mar 29, 2022
2 parents 0ce694a + dd6a909 commit 19cf1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integration/billing/stripe/StripeBillingIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 19cf1a7

Please sign in to comment.