GiftCardActions

cart · /react·type

Gift-card mutation methods added to when CartCapabilities.giftCards is true. Apply or remove a gift card by its redemption code or server-issued id.

Properties

applyGiftCard
unknown
removeGiftCard
unknown

Example

const actions = useCartActions<{ giftCards: true } & CartCapabilities>();
await actions.applyGiftCard('GIFTCARD123');

CartDevtools CartFormProps CartProviderProps AppCartConfig BaseCartActions BuyerIdentityActions CartActions CartAttributeActions

Metadata@nordcom/commerce-cart@0.2.2Open in GitHub ↗

On this page