The year-end holiday season is when gift cards shine. Shoppers who cannot decide on the perfect present buy a card instead, and businesses get revenue upfront plus a future visit from a new customer. Store credit plays a similar role all year round, turning returns into future purchases instead of refunds that leave your business for good.
Yet many online stores either skip gift cards and store credit entirely or bolt them on with a plugin that falls apart the moment they add a mobile app, a second website or a physical outlet. This guide explains how gift card systems actually work under the hood, what to get right from day one, and how to build one that is secure, auditable and easy for customers to use.
Although customers see them as different features, gift cards and store credit share the same core idea: a balance that can be spent at your store.
Building both on one shared balance engine keeps the system simpler and gives customers a single wallet view.
The most important design decision is how you store balances. Never keep a single "balance" number that gets overwritten. Instead, use an append-only ledger where every action is a separate entry: issued, redeemed, refunded, adjusted or expired. The current balance is the sum of those entries. This gives you a complete audit trail and makes disputes easy to resolve.
Gift card codes should be long, random and hard to guess. Avoid sequential codes or codes based on order numbers. Store a hash of the code in your database, just as you would a password, and show only the last few characters in admin screens.
Customers choose an amount or design, add a personal message, pick a delivery date and enter the recipient's email or phone number. Scheduled delivery is popular during festivals and birthdays, so build a reliable job that sends cards at the right time in the recipient's time zone.
At checkout, customers enter a code or select their store credit. The system checks the balance, applies the amount, and supports partial redemption so a card worth more than the order keeps its remaining balance. Allow gift cards to be combined with other payment methods for orders larger than the card value.
If an order paid partly with a gift card is refunded, the gift card portion should go back to the card or to store credit, not to the customer's bank account. Your refund logic needs to understand split payments clearly.
Support teams need to look up a card, see its full history, issue store credit, freeze a suspicious card and export reports for finance.
Consider a direct-to-consumer apparel brand with a website, a mobile app and a few retail outlets. Today, it sells gift vouchers only in stores as printed cards, and online returns are always refunded to the original payment method.
For example, the brand could introduce digital gift cards that work everywhere and offer customers the choice of instant store credit for returns instead of waiting for a bank refund. A shared ledger connects the website, app and point of sale, so a card bought online can be redeemed in an outlet. If even some returning customers chose store credit, more revenue could stay inside the business, though the actual effect would depend on the brand's customers and return policy. The brand would track this carefully over the first season rather than assume a result.
Gift cards are not just a product to sell. They are a financial system inside your store, and they deserve the same care as your payment flow.
Gift cards are attractive to fraudsters because they behave like cash and are hard to trace. Common attacks include guessing codes by brute force, buying cards with stolen payment cards and reselling them, and taking over customer accounts to spend stored credit. Defend against these with long random codes, strict rate limits on balance checks, velocity rules on card purchases, account security such as OTP or passkeys, and alerts for unusual redemption patterns.
If you run a single Shopify or WooCommerce store, an existing gift card app is often the fastest start. A custom build becomes worth it when you need balances shared across a website, mobile app and physical outlets, deep integration with loyalty programs, B2B corporate gifting with bulk codes, or reporting that plugins cannot provide. Our web development services include custom checkout and wallet systems for brands that have outgrown plugins.
Whichever route you choose, gift cards should be planned as part of the whole store rather than as an isolated add-on. Our ecommerce industry work covers how wallets, loyalty, checkout and order management fit together in a wider store architecture.
Policy decisions shape both customer experience and accounting, so settle them before development starts. Decide whether gift cards expire and, if so, after how long, keeping in mind any rules that apply in your market. Decide whether store credit issued for returns follows the same rules as purchased gift cards. Clarify whether cards can be reloaded, transferred between accounts or converted back to cash, which in most cases they should not be.
Communicate these rules clearly on the purchase page, in the delivery email and on the balance check screen. Hidden or confusing terms lead to complaints and support tickets. A friendly reminder before a balance expires is good for customers and often brings them back to the store.
Once gift cards and store credit are live, track a small set of indicators: cards sold by channel and season, redemption rate over time, average order value when a gift card is used, the share of returns converted to store credit, and outstanding balance liability for finance. Reviewing these numbers after each festive season shows whether your designs, denominations and promotions are working, and helps you plan inventory and campaigns for the next peak.
Gift cards and store credit look like small features, but they are really a financial system inside your store. Built on a proper ledger with secure codes, idempotent redemption, clear refund rules and strong fraud controls, they become a reliable source of revenue and loyalty. Start with clear policies, confirm the regulatory and tax details with your advisors, and launch a few weeks before peak season so you have time to learn and adjust.