@managesome/eposmatic-toolkit 0.2.560 → 0.2.561

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -828,7 +828,9 @@ function receiptEngine(payload, mappedItems = {}) {
828
828
  order_link = payload.order.tax_invoice_id;
829
829
  }
830
830
  else {
831
- const qrCodePayment = (0, payment_helpers_1.getQRCodePaymentLink)(grandTotal, payments);
831
+ // Use raw order.payments here (not the settled-only `payments` list) because
832
+ // getQRCodePaymentLink looks for a PENDING RAAST_PAY payment to derive the QR link.
833
+ const qrCodePayment = (0, payment_helpers_1.getQRCodePaymentLink)(grandTotal, payload.order.payments);
832
834
  if (qrCodePayment != null) {
833
835
  order_link = qrCodePayment.qrLink;
834
836
  custom_message = qrCodePayment.scanMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.560",
3
+ "version": "0.2.561",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",