Files
apskel-pos-backend/internal/handler
efrilmandClaude Opus 5.5 43eac0ced4 feat(loyalty): pay own orders with EnakPoint from the app
Adds POST /customer/orders/:id/pay-with-points (docs/prd-point-coin.md F9,
PC-306) for the customer app and self-order. It uses the same payment path
as the cashier, approved by the customer's PIN instead of a code: the
session alone is not enough (K8), and a wrong PIN takes nothing and counts
toward the lock.

A customer can pay only their own order; any other order, and one that
does not exist, answer 404 alike, so the endpoint does not reveal other
customers' orders. The method is the organization's EnakPoint method, no
cashier is recorded, and settling the order triggers earning through the
same onOrderPaid hook as every other payment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 11:49:49 +07:00
..
2026-08-05 19:28:38 +07:00
2025-07-30 23:18:20 +07:00
2025-09-18 13:39:37 +07:00
2026-08-13 14:38:28 +07:00
2025-09-18 01:32:01 +07:00
2025-07-18 20:10:29 +07:00
2026-06-03 14:56:27 +07:00
2025-07-18 20:10:29 +07:00
2025-07-18 20:10:29 +07:00
2026-04-27 21:17:12 +07:00
2026-04-27 21:17:12 +07:00
2025-08-14 01:35:19 +07:00
2026-05-10 10:57:38 +07:00
2025-07-18 20:10:29 +07:00
2026-04-14 19:09:09 +07:00
2025-07-18 20:10:29 +07:00
2026-06-08 12:30:39 +07:00
2025-07-18 20:10:29 +07:00
2026-08-11 22:41:10 +07:00
2026-06-19 13:31:33 +07:00
2025-09-17 23:55:11 +07:00
2025-09-18 13:39:37 +07:00
2025-08-03 23:55:51 +07:00
2025-08-03 23:55:51 +07:00
2026-05-10 10:42:09 +07:00
2025-08-10 20:41:34 +07:00
2025-07-30 23:18:20 +07:00
2025-07-30 23:18:20 +07:00
2025-09-12 01:12:11 +07:00