Pinelab Plugins Pinelab
# Install this plugin
npm install @pinelab/vendure-plugin-store-credit

Changelog for vendure-plugin-store-credit

2.1.0 (2026-08-06)

  • Allow creating gift cards via the Dashboard.

2.0.2 (2026-08-04)

  • Auto-created gift cards are no longer linked to the purchasing customer, so they can be used by any customer with the gift card code.
  • Made WalletAdjustment.mutatedBy optional, allowing gift-card payments to be recorded without an active user (e.g. anonymous/guest customers).
  • BREAKING: A database migration is required. Drop the NOT NULL constraint on wallet_adjustment.mutatedById so that adjustments can be created without an associated user.

2.0.1 (2026-08-04)

  • Added documentation for paying with a gift card code, with and without a specified amount.

2.0.0 (2026-07-21)

  • BREAKING: The createGiftCardWallet hook is now called once per order line quantity instead of once per order line. This allows returning different gift card configurations for each individual item when the quantity of an order line is > 1.
  • Added giftCardCodes custom field to OrderLine to store generated gift card codes.
  • Renamed GiftCardWalletCreatedEvent to GiftCardsCreatedEvent. The old class name is kept as a deprecated alias.
  • A database migration is required due to the new custom field.

1.7.0 (2026-07-21)

  • Migrated to React Dashboard

1.6.0 (2026-08-05)

  • Upgraded to Vendure 3.6.3

1.5.0 (2026-04-15)

  • Added support for Wallet based Gift Cards
  • Security: walletByCode is now channel-scoped, returns null for unknown codes, requires UpdateOrder on the admin API and an active order on the shop API (to prevent enumeration attacks)
  • Security: wallet debits are now performed atomically to prevent race conditions / double-spend
  • BREAKING: WalletService.create now throws when neither customerId nor code is provided. The admin CreateWalletInput has a new optional code field; pass a code explicitly when creating a wallet without a customer
  • BREAKING: the admin giftCardWallets query now requires the ReadCustomer permission
  • The removed unique index on wallet.name allows duplicate wallet names across customers

1.4.1 (2026-02-20)

  • Include raw .tsx components for React Extension distribution

1.4.0 (2026-02-13)

  • Add pagination support for querying adjustments on wallets.
  • BREAKING: wallet.adjustments is now paginated, that means you need to query adjustments { items { ...fields } } instead of adjustments { ...fields };

1.3.0 (2026-02-12)

  • Added metadata field on a wallet for custom data

1.2.0 (2026-02-12)

  • Added dashboard components for managing wallets and balance on the customer detail page.
  • BREAKING: DB migration required, balance is now defined as Money to prevent rounding errors.

1.1.0 (2026-02-03)

  • Accept amount as input to the store credit payment handler, to partially pay for an order with store credit
  • Export helper functions to populate wallets for customers
  • BREAKING: DB migration required: Customers can not have multiple wallets with the same name

1.0.0 (2026-02-03)

  • Initial release