fix: correct earn points API path on loyalty terminal
Some checks failed
Some checks failed
JS called /store/loyalty/points/earn but endpoint is POST /store/loyalty/points. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -220,7 +220,7 @@ function storeLoyaltyTerminal() {
|
|||||||
async earnPoints() {
|
async earnPoints() {
|
||||||
loyaltyTerminalLog.info('Earning points...', { amount: this.earnAmount });
|
loyaltyTerminalLog.info('Earning points...', { amount: this.earnAmount });
|
||||||
|
|
||||||
const response = await apiClient.post('/store/loyalty/points/earn', {
|
const response = await apiClient.post('/store/loyalty/points', {
|
||||||
card_id: this.selectedCard.id,
|
card_id: this.selectedCard.id,
|
||||||
purchase_amount_cents: Math.round(this.earnAmount * 100),
|
purchase_amount_cents: Math.round(this.earnAmount * 100),
|
||||||
staff_pin: this.pinDigits
|
staff_pin: this.pinDigits
|
||||||
|
|||||||
Reference in New Issue
Block a user