Skip to content

Commit

Permalink
fix(braspag): Fixed URL for Pix QR Code images
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Oct 22, 2024
1 parent d1ddf29 commit 9e87e49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const createTransaction = async ({ params, application }) => {
await db.doc(`braspagQrCode/${orderId}`).set({ qrCode: qrCodeBase64 })
.catch(logger.error);

const qrCodeSrc = `${baseUri}/braspag-qr-code?orderId=${orderId}`;
const qrCodeSrc = `${baseUri}/braspag-qrCode?orderId=${orderId}`;
transaction.notes = '<div style="display:block;margin:0 auto"> '
+ `<img src="${qrCodeSrc}" style="display:block;margin:0 auto; width:150px;"> `
+ `<input readonly type="text" id="pix-copy" value="${qrCode}" />`
Expand Down

0 comments on commit 9e87e49

Please sign in to comment.