Issue when generating an invoice before sending to email
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?
That issue happens on this endpoint
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.
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.
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!
That’s awesome news! I’d love to hear your solution too. It might help someone else who has the same problem.