Gift Card

Gift Card Balance

Gift card balance checker and redemption form for checkout.

A component for checking gift card balances and applying them to orders. Shows a code input, lookup button, and displays card details (balance, status, expiry) with a redeem action.

Preview
GIFT-ABCD-1234
active
$75.50 of $100.00
Expires: 12/31/2025

Usage

<CGiftCardBalance
  :gift-card="lookupResult"
  @lookup="handleLookup"
  @redeem="handleRedeem"
/>

Loading State

<CGiftCardBalance loading />

Props

PropTypeDefaultDescription
giftCardGiftCard | nullnullLooked-up gift card data
loadingbooleanfalseLookup or redeem in progress
uiPartial<{...}>Per-instance theme overrides

Events

EventPayloadDescription
lookupstringCode submitted for balance check
redeemRedeemGiftCardInputApply to order { code }

Status Colors

StatusBadge Color
activesuccess
inactivewarning
redeemedneutral
expirederror
cancellederror