Thank you for choosing to purchase from us! We truly appreciate your business and are grateful for the opportunity to provide you with a high-quality product that we hope will meet or exceed your expectations.

`; let tempElement = await document.createElement('div'); tempElement.innerHTML = htmlString; const options = { margin:1, filename:'Walone-Fashion-Receipt.pdf', html2canvas:{ scale: 2, scrollY: 0 }, jsPDF:{ unit: 'in', format: 'letter', orientation: 'portrait' } }; await html2pdf().set(options).from(tempElement).save(); } catch (error) { // Handle any errors that occur during the request console.error("Error retrieving transaction data:", error); throw error; } } let button_text2 = document.getElementsByClassName("button_text2")[0]; if(button_text2){ button_text2.addEventListener("click", fetchTransactionData); }else{ console.log("doesn't exist") }