Skip to content

Store Credit

Store Credit is a Hyvä Commerce feature that allows for every customer to have a spendable balance on your store. Customers see their balance in My Account, apply it in the cart or in Hyvä Checkout, and the amount comes straight off the order total. Merchants top balances up, hand out goodwill credit, and refund orders to store credit instead of to a payment method.

Pre-release Feature

Store Credit has not had a stable release yet. The behavior described here matches the current development version, and details may still change before general availability.

Store credit in the customer account

What Store Credit Does

  • Gives every customer a balance per website, held in that website's base currency, so a customer can carry a different balance on each of your websites.
  • Records every change in an append-only ledger. Nothing is ever overwritten. Each entry stores the signed amount, the balance that followed it, who or what caused it, and which order or credit memo it belongs to.
  • Spends credit in the cart and in checkout. Customers apply and remove their credit themselves, and the amount is deducted from the order total.
  • Refunds to store credit from a credit memo, with a separate permission for refunding more than the order was worth.
  • Emails customers when their balance changes, with separate switches and templates for credit received and credit spent.
  • Imports and exports balances as CSV, so you can seed balances when migrating from another platform.
  • Exposes balances through REST and GraphQL, so headless storefronts and back-office integrations get the same behavior as the Hyvä storefront.

Where to Find Store Credit in the Admin

Store Credit adds two entries under Customers in the Magento admin: a balance overview and a CSV export.

Store Credit in the Customers menu

  • Customers → Store Credit lists every customer balance and links through to the balance management screen.
  • Customers → Export Store Credit (CSV) downloads all balances as store_credit_balances.csv.
  • Stores → Settings → Configuration → Hyvä Commerce → Store Credit holds all settings, scoped per website.
  • Each customer also gets a Store Credit tab on their customer edit page.

Access is controlled by five ACL resources to give fine grained access to what each admin user can do.

Installing Store Credit

Store credit is switched off out of the box, so there are two steps: install the package, then enable it for the websites that should have it. Follow Installing Store Credit to get both done.

More Information