Define what the customer owns
A gift card represents a stored amount that the customer can apply to eligible purchases under the merchant's actual terms. It is a payment instrument in the checkout journey, not a discount code that merely changes a displayed price. Before choosing software, define the issuing currency, where the card can be used, whether it can cover delivery charges, whether multiple cards can be combined, and what happens if the purchase exceeds or falls below the available value. The answer must be based on the store's published terms and the platform it actually operates. Shopify's own help says its cards can be spent across more than one order while value remains, can be combined with discount codes and other cards, and can leave a balance for another payment method. Those are Shopify behaviors, not universal rules for every gift-card programme. A custom system should show its own rules before a customer enters a code. Record the card identifier separately from the secret redemption code, and show only masked characters in ordinary staff and customer views.
Record movements, not a hand-edited balance
Treat the balance as the result of identifiable movements: issue or load, redemption, approved credit, correction and any reversal. Each movement needs a unique event ID, card ID, amount, currency, direction, timestamp, reason and link to the relevant order or staff decision. A current balance may be stored for quick reads, but it must reconcile to the authorised movement history. Shopify's gift-card query exposes both remaining balance and transaction history, and its documentation describes credit and debit transaction types. That supports the general ledger pattern; it does not dictate a merchant's accounting treatment. Restrict manual adjustments to an approved role and require a reason that a future reviewer can understand. Never erase a wrong debit from the visible history; record a correcting movement that refers to it. Use precise money representation and one currency policy, especially when a shop sells in several currencies. A numerical balance without a transaction trail may appear fine until a customer disputes a charge, a refund is repeated, or two channels spend the same value.
Make redemption one controlled decision
At checkout, the system should validate that the card is active and eligible, read a current available amount, calculate the intended redemption, and commit the order payment allocation and balance movement together or with a recoverable reservation workflow. Two browser tabs, a shop counter and an online checkout can otherwise read the same balance and both believe it is available. Recheck at final submission rather than relying on a balance shown minutes earlier. If a payment attempt fails, distinguish a temporary hold from a completed redemption and release or reverse it through a recorded event. Do not tell a customer the card has been spent until the associated order outcome is known. Give each redemption attempt a stable idempotency key so a lost network response and a retry cannot create a second debit. The customer-facing result should say how much was applied from each card, what remains to pay by another method, and what balance remains after completion. A failed attempt should explain whether the card value is available to try again.
Explain a split payment precisely
Suppose a hypothetical customer buys goods with a final payable total of HKD 420 and has a gift card with HKD 150 available. If the card is eligible for the whole amount, the checkout can allocate HKD 150 to the card and request HKD 270 through another supported method. The receipt should keep the merchandise and delivery total separate from the two payment allocations. If the other payment fails, the merchant needs an explicit rule for whether the card allocation remains reserved briefly, is immediately released, or requires staff recovery; that rule should be visible in the order state. The numbers are an illustrative calculation, not a reported merchant offer. Shopify's help describes a customer being asked for another payment method when card value is below the order total, but its exact restrictions and conversion behavior depend on the store setup. A merchant should test its own checkout with partial card value, more than one card, a discount, changed shipping and a late total change. The customer should never be left with a paid-looking order whose second payment is still pending.
Tie refunds to the original payment allocation
A refund is not simply an increase to whatever card the customer enters later. The order must identify which card contributed which amount, what has already been refunded, and whether the original card can still receive value. For a mixed payment, set a documented allocation rule and show staff the permitted refund amounts for each tender. Shopify's help says its default partial-refund handling applies value to the gift card first up to the available refund amount, while staff can adjust the split within permitted limits. It also describes different handling for expired or deactivated cards and for certain payment setups. Do not copy those steps into a custom checkout without confirming its actual capabilities. A refund request can be submitted twice or interrupted after the provider has processed it; link it to one refund intent and reconcile the provider's result before creating any second credit. The customer should receive a clear statement of the amount returned to the card, the amount returned elsewhere, and when each outcome is confirmed.
Protect the code and support investigation
A gift-card code is spendable value. Do not place the full code in analytics events, support screenshots, email logs or routine exports. Staff generally need a masked reference, balance, status and transaction timeline, while only a tightly controlled redemption service needs to process the secret. Rate-limit repeated guesses and avoid responses that reveal whether a guessed code belongs to a particular customer. Provide an authorised recovery path for a customer who lost access, but verify the requester against the original purchase or recipient information according to the merchant's actual policy. Keep a practical support view: issuance, all redemptions, holds, reversals, credits and linked orders in chronological order, with clear pending versus completed labels. A dispute can then be answered from real events instead of a staff guess about why a balance moved. Treat a manual correction as a reviewed transaction with a reason and evidence, not a direct database edit. Decide how long operational records are retained with applicable business and legal advice; this article does not assert a universal Hong Kong retention period.
Prove the balance under stress
Before launch, test one card across online and counter channels with two concurrent redemption attempts; only the allowed value should be committed. Repeat a completed request with the same attempt ID and confirm no second debit. Interrupt the other payment in a split purchase and verify the card's hold, release and customer message. Refund part of a mixed-tender order, then repeat the refund request and inspect both the order and card timeline. Test deactivated or expired cards using the actual programme terms, and test a changed order total after a card was entered. Reconcile the displayed balance to the movement history and linked order allocations after each case. Have a staff member explain a sample balance from those records without opening a database console. If the platform already supplies a trustworthy gift-card ledger, focus on configuration, integration and support display rather than rebuilding it. If gaps remain, specify them as observable failures with the affected card and order state. That gives an owner a useful acceptance decision, rather than a promise that the card feature merely works.
Publish rules the system can actually enforce
The programme terms and the software must describe the same instrument. Before launch, have the owner answer whether cards expire, whether balances can be checked without a purchase, whether a lost code can be replaced, which channels accept the card, and what a refund does when a card is no longer usable. Do not borrow another platform's policy wording simply because its API is convenient. Turn each answer into a visible customer statement and a test case. For instance, if the store promises that a partially used card can fund a later purchase, redeem a small amount, close the first order, then use the same card again through every supported channel. If cross-currency use is offered, specify the conversion rule and what currency the displayed balance represents; if it is not offered, show the restriction before final submission. Keep policy changes dated and avoid silently changing the meaning of cards already issued. Obtain appropriate legal and accounting review for local obligations and financial reporting rather than presenting a software design as that advice.
Checks before accepting the design
- Can one retry create a second debit or credit?
- Can staff explain a balance from linked movements and orders?
- Does a mixed payment show each completed and pending allocation?


