Private
Tracker *Bug Feature Support Testing
Subject *
Description Edit Location in Code: payment.service.js:917-975 (persistPendingStripeOrder) shop-controller.js:5200-5205 (Webhook Handler) shop-controller.js:6208-6217 (Success Page Sync) The Root Issue: Premature Execution on Unpaid Orders: In payment.service.js:964-974 , the function awardReferrerOnFirstPaidOrder is called before the customer ever enters their credit card details. If the customer closes the browser tab and never completes payment, the referring customer is already credited with real monetary rewards! Triple Points Exploit: Point earning (processLoyaltyEcomEarning) is called in persistPendingStripeOrder (Line 927). If the customer arrives on the success page before the webhook, getOrderDetailsBySessionId calls processLoyaltyEcomEarning again (Line 6214). When Stripe's webhook arrives a moment later, it runs completeExistingCardOrder and executes processLoyaltyEcomEarning a third time (Line 5203). *Impact:* Customers can receive double or triple reward points on a single order, and referrers receive cash-value bonuses for abandoned checkouts.
Status New
Priority *Low Normal High Immediate
Assignee Ajit ABindu DandaChandra SekharDivya InapakurthiKarthik PalakondaPavan Kumar MuralaRavi Shankar PalleRavindra AtthotaSai MahanandaSai Priyatham SadineniSowjanya atthotaSravani RangannapalemTeja Sriram SanganiYalavarthi Thriveni
Target version Sprint (10/05/2026- 10/09/2026) sprint (10/12/2026 - 10/31/2026) Backlog
Parent task
Start date
Due date
Estimated time Hours
% Done0 % 10 % 20 % 30 % 40 % 50 % 60 % 70 % 80 % 90 % 100 %