A gift card lets someone pay for counseling sessions on behalf of another person. The buyer pays Leshya online; the recipient gets a code by email and spends it when booking sessions. Every redemption creates an amount Leshya owes the counselor, and gift-paid sessions now flow into the same earnings and withdrawal model as other centrally collected sessions.
The rules
Amounts: ₹500 to ₹10,000, in steps of ₹100.
Expiry: 12 months from the day payment is confirmed.
Leftover balance: Stays on the code for future bookings until spent or expired.
Session costs more than the balance: Blocked. The recipient is asked to pick a session within the balance.
Who can redeem: Anyone holding the code. A gift card is a bearer instrument, so no email match is needed.
Cash-out: Never. The value can only become sessions on Leshya (closed loop).
Counselor payout: Full session fee per redemption for now. The amount appears in counselor earnings and is paid through withdrawals.
Buying a gift card
1. Go to /gift. No account needed.
2. Choose an amount, add your name and email, the recipient's name and email, and an optional message (up to 280 characters).
3. Pay through the Razorpay payment link. The link stays valid for 7 days.
4. Once payment is confirmed, two emails go out automatically: the recipient gets the code (format LESH-XXXXXXXX) with your message, and you get a receipt with a printable receipt link that works for a year. If it has expired, write to support and we will send a new one.
If the payment link expires or is cancelled before payment, the card is cancelled and nothing is charged.
Redeeming a gift card
1. The recipient picks a counselor and a slot as usual.
2. On the booking details step, they open "Have a gift card?" and enter the code. Anyone holding the code can redeem it, so there is no email match.
3. If the session price fits the balance, the booking shows "Covered by your gift card". A guest confirms their booking email with a code before the session confirms; signed-in customers skip that step. There is no UPI payment step and the counselor does not need to approve it. The booking email need not match the gift recipient's email.
4. The session amount is deducted from the card. Anything left stays on the code for next time.
What the recipient sees if something is off: a calm message for each case, including a code that isn't found, a card whose payment hasn't been confirmed yet, an expired card, or a balance that doesn't cover the chosen session.
What the counselor sees
Gift-paid bookings arrive as confirmed and paid, with the note "Paid with a Leshya gift card. We'll settle this with you." They never appear in the "Awaiting your confirmation" queue and count as earned revenue in the earnings view with no payment gateway fee. Leshya pays the counselor through the withdrawal flow.
What the admin does
/admin/gift-cards has two tables:
Gift cards: every card with buyer, recipient, value, remaining balance, status, and dates.
Settlements: every gift-paid session with the counselor, session, and amount owed. Owed settlements are paid through counselor withdrawals. Reversed rows from cancellations are visible for history.
Admins can also resend the recipient card email or the buyer receipt email from the gift-card table. Delivery diagnostics stay in Resend.
Cancellations
When a gift-paid cancellation qualifies for a refund, the amount goes back onto the card and the settlement row is reversed. An exhausted card becomes active again. A late customer cancellation can forfeit the fee, just as with an online payment; the cancellation screen explains which applies.
One edge to know: if the counselor has already withdrawn the session amount and the booking is refunded afterwards, the card is still refilled, but recovering the payout from the counselor is a manual conversation. The ledger row shows as reversed so it's visible.
Not done yet
Tracked in PENDING-TASKS.md: turning on commission for redemptions.

