xendivel icon indicating copy to clipboard operation
xendivel copied to clipboard

Issue when generating an invoice before sending to email

Open danmarklagman opened this issue 1 year ago • 3 comments

Hi @glennraya,

Greeting!

I appreciate very much your work here! It helps me integrate xendit on a web app that I am working with. However, I am encountering this one after the successful payment (see screenshot below). Upon doing some research, it looks like it's an issue with puppeteer. I haven't had the success yet on fixing it locally that is why I reported it as an issue. Can you help me regarding this, please?

Image

That issue happens on this endpoint

Image

That endpoint processes the payment and sending of the invoice to the email address provided. The payment successfully went through as I have verified it on xendit.

danmarklagman avatar Jan 26 '25 02:01 danmarklagman

Hi, you're right, that issue is with puppeteer, have you installed it. You need to consult the Browsershot package (Spatie) regarding your issue. I had never encountered this before locally.

When in production, it seems Browsershot/Puppeteer is very difficult to make it work. I plan to update this part of the package soon. If you still have issues, I recommend using other PDF generation tools like DOMPDF.

glennraya avatar Jan 26 '25 05:01 glennraya

Hi! Thank you replying to my inquiry. You are right, it turns out it is an issue with Browsershot package. I have tried various fix until my app works as intended in production. I just added additional configuration to Browsershot. Thanks for the tip!

danmarklagman avatar Feb 02 '25 16:02 danmarklagman

That’s awesome news! I’d love to hear your solution too. It might help someone else who has the same problem.

glennraya avatar Feb 03 '25 00:02 glennraya