fix(pos): pass selected payment method to PayOrderAsync

CafeDesktop.ConfirmPayment() was calling PayOrderAsync without
_selectedMethod, defaulting to "cash" regardless of user selection.
Now passes _selectedMethod (cash/card/qr/transfer) correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ho Ngoc Hai
2026-03-26 10:04:28 +07:00
parent c708bda364
commit 6bdf0390ba

View File

@@ -948,7 +948,7 @@
{
if (_createdOrderId.HasValue)
{
await DataService.PayOrderAsync(_createdOrderId.Value, ShopId);
await DataService.PayOrderAsync(_createdOrderId.Value, ShopId, _selectedMethod);
_lastTransactionId = _createdOrderId.Value.ToString()[..8].ToUpper();
}
else