PHPackages                             solution25/store-credit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. solution25/store-credit

ActiveShopware-platform-plugin

solution25/store-credit
=======================

Store Credit for Shopware 6

1.0.5(2mo ago)406MITPHPCI failing

Since Sep 29Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/solution25com/store-credit-shopware-6-solution25)[ Packagist](https://packagist.org/packages/solution25/store-credit)[ RSS](/packages/solution25-store-credit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (6)Used By (0)

[![1](https://private-user-images.githubusercontent.com/101514766/432200895-bb12d407-d013-41dd-b97e-c3d08112c054.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAwODk1LWJiMTJkNDA3LWQwMTMtNDFkZC1iOTdlLWMzZDA4MTEyYzA1NC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hODQyNDQ0MjczMjYyZWZkMTQwYzA0MTI4YjRhYzk5ODA3ZmE3ODczMWE0MjZmODg2MjEzYjE1M2E0NDIwOTBkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.KpA5wSa5GSSHEqDKVqyWkhi1U1lfNlyYJsOJjftVyJw)](https://private-user-images.githubusercontent.com/101514766/432200895-bb12d407-d013-41dd-b97e-c3d08112c054.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAwODk1LWJiMTJkNDA3LWQwMTMtNDFkZC1iOTdlLWMzZDA4MTEyYzA1NC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hODQyNDQ0MjczMjYyZWZkMTQwYzA0MTI4YjRhYzk5ODA3ZmE3ODczMWE0MjZmODg2MjEzYjE1M2E0NDIwOTBkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.KpA5wSa5GSSHEqDKVqyWkhi1U1lfNlyYJsOJjftVyJw)

Store Credit
============

[](#store-credit)

Introduction
------------

[](#introduction)

The Store Credit Plugin allows administrators to manage store credits for customers who return products. Instead of issuing refunds, the admin can allocate store credit to the customer's account , which can be used for future purchases. The store credit can be applied over multiple orders until the allocated amount is fully utilized.

### Key Features

[](#key-features)

- **Store Credit Management**:Admins can add, remove, and adjust store credit for customers.
- **Partial Usage**: Customers can use store credit across multiple orders until exhausted.
- **Smooth Checkout Integration** Customers can apply store credit at checkout alongside other payment methods.
- **Transaction History**: Customers and admins can view a history of store credit transactions.

Compatibility
-------------

[](#compatibility)

- ✅ Shopware 6.6.x

Get Started
-----------

[](#get-started)

### Installation &amp; Activation

[](#installation--activation)

1. **Download**

- Clone the Plugin Repository:
- Open your terminal and run the following command in your Shopware 6 custom plugins directory (usually located at custom/plugins/): ```
    git clone https://github.com/solution25com/store-credit-shopware-6-solution25.git

    ```

2. **Install the Plugin in Shopware 6**

- Log in to your Shopware 6 Administration panel.
- Navigate to Extensions &gt; My Extensions.
- Locate the newly cloned plugin and click Install.

3. **Activate the Plugin**

- After installation, click Activate to enable the plugin.
- In your Shopware Admin, go to Settings &gt; System &gt; Plugins.
- Upload or install the “Store Credit” plugin.
- Once installed, toggle the plugin to activate it.

4. **Verify Installation**

- After activation, you will see Store Credit in the list of installed plugins.
- The plugin name, version, and installation date should appear as shown in the screenshot below. [![2](https://private-user-images.githubusercontent.com/101514766/432200996-ee52304c-21f8-42a8-9f12-a90287bc1327.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAwOTk2LWVlNTIzMDRjLTIxZjgtNDJhOC05ZjEyLWE5MDI4N2JjMTMyNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MTNmYTMyOTE5NjUyYmFkMGU1YjY1YTVlNWM4YjEyYjQyMDMzMzg2MWZmZWM4ZjZlNDg1MGM4NGYzMmQyYmQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.4MFWTJhY7CuKrESIcj51T9ZGOFty-ouaVovf4SZVH5A)](https://private-user-images.githubusercontent.com/101514766/432200996-ee52304c-21f8-42a8-9f12-a90287bc1327.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAwOTk2LWVlNTIzMDRjLTIxZjgtNDJhOC05ZjEyLWE5MDI4N2JjMTMyNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MTNmYTMyOTE5NjUyYmFkMGU1YjY1YTVlNWM4YjEyYjQyMDMzMzg2MWZmZWM4ZjZlNDg1MGM4NGYzMmQyYmQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.4MFWTJhY7CuKrESIcj51T9ZGOFty-ouaVovf4SZVH5A)

Plugin Configuration
--------------------

[](#plugin-configuration)

1. **Access Plugin Settings**

- Go to Settings &gt; System &gt; Plugins.
- Locate Store Credit and click the three dots (...) icon or the plugin name to open its settings.

2. **General Settings**
    **1. Minimal Configuration**: After installing the Store Credit Plugin, you need to enable the **Store Credit Refund Type** in the configuration. Since this plugin is related to **Swag Commercial**, the toggle should be enabled for the **Store Credit Refund Type** option to activate store credit refunds.
    [![3](https://private-user-images.githubusercontent.com/101514766/432201195-1b9a2531-5ce2-4c69-95ff-bcf934d5375f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxMTk1LTFiOWEyNTMxLTVjZTItNGM2OS05NWZmLWJjZjkzNGQ1Mzc1Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZTViNWY1NTdmZjcyNzhmMDdkMTdjYzYyOTNkZThmODE1MWYyNmYxODViMjVlYjQ4NjVmMjdhZjE4MzNlOGU0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.9FHwndLUBZH-jlKJJJwjO0TfLDutRCEbaBrMXAc5lLI)](https://private-user-images.githubusercontent.com/101514766/432201195-1b9a2531-5ce2-4c69-95ff-bcf934d5375f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxMTk1LTFiOWEyNTMxLTVjZTItNGM2OS05NWZmLWJjZjkzNGQ1Mzc1Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZTViNWY1NTdmZjcyNzhmMDdkMTdjYzYyOTNkZThmODE1MWYyNmYxODViMjVlYjQ4NjVmMjdhZjE4MzNlOGU0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.9FHwndLUBZH-jlKJJJwjO0TfLDutRCEbaBrMXAc5lLI)

**2. Store Credit Add State**: Toggle to enable or disable the feature.
**3. Post Purchase Features**: Restrict store credit usage to specific products.
[![4](https://private-user-images.githubusercontent.com/101514766/432201310-6c0da891-9f8d-4f72-bb91-1379a1862491.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxMzEwLTZjMGRhODkxLTlmOGQtNGY3Mi1iYjkxLTEzNzlhMTg2MjQ5MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNTgxM2YyY2VhZDU5ZWE1Njg3MzcyMDc1M2MyYjIzMjBjMjY1MDdhZTQ1MDg4ODQ2YmE1NTRiYTJmY2E2Yjg2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ez4medrHWIN6hBLlPK1BQYBDZFhTVtURz9ZJthoybrE)](https://private-user-images.githubusercontent.com/101514766/432201310-6c0da891-9f8d-4f72-bb91-1379a1862491.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxMzEwLTZjMGRhODkxLTlmOGQtNGY3Mi1iYjkxLTEzNzlhMTg2MjQ5MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNTgxM2YyY2VhZDU5ZWE1Njg3MzcyMDc1M2MyYjIzMjBjMjY1MDdhZTQ1MDg4ODQ2YmE1NTRiYTJmY2E2Yjg2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ez4medrHWIN6hBLlPK1BQYBDZFhTVtURz9ZJthoybrE)

How it works
------------

[](#how-it-works)

After installing and enabling the plugin in the admin panel, customers can view their available balance and transaction history in their profile account settings on the storefront. [![5](https://private-user-images.githubusercontent.com/101514766/432201402-5005aaea-4109-4b3f-bff8-b1bf9b268b3c.png?jwt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otQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MTc4MTRjYTI1ZmY0N2YxMTYwOGI2YTU3NWZiMmE5MzQ0MTBlMDNhMjMyOWY5N2IxMDIzNjRlOGZhY2E0MzA4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Pxvqray1GZ9mNSPFiuGb6FA9KZdV6UZvV6h5mRYP3dU)

Admins can manually add or deduct store credit from a customer’s account. [![6](https://private-user-images.githubusercontent.com/101514766/432201508-1486cb7b-b82f-4817-b958-038283332661.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxNTA4LTE0ODZjYjdiLWI4MmYtNDgxNy1iOTU4LTAzODI4MzMzMjY2MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYjIxMDUwMWZmY2VlNzdmZDZiYWY1ZTkwZmRmNWUzZTc0NDA3NDFkMTVkNjA4ZjIwZTk4MzljODAxNDM1MzQxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.S4WDeDjaQUFKMIJu8ltIszFknZYKjtCC8C_WAV5iUtI)](https://private-user-images.githubusercontent.com/101514766/432201508-1486cb7b-b82f-4817-b958-038283332661.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxNTA4LTE0ODZjYjdiLWI4MmYtNDgxNy1iOTU4LTAzODI4MzMzMjY2MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYjIxMDUwMWZmY2VlNzdmZDZiYWY1ZTkwZmRmNWUzZTc0NDA3NDFkMTVkNjA4ZjIwZTk4MzljODAxNDM1MzQxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.S4WDeDjaQUFKMIJu8ltIszFknZYKjtCC8C_WAV5iUtI)[![7](https://private-user-images.githubusercontent.com/101514766/432201532-ec63a465-a4e7-49b5-a5e4-985c95676857.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxNT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IxNThjYTgwZjg2NzFhYmUyYTU3Yjg4OWQ4NzQzZTQ5YTE4ZmM3NGMxMGNkNDQ5MDhmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.sjOp6Wjz1uFC7-lOFPdC-dR3owXsKbJuEQtrkOH7_gI)

### Refunds &amp; Credit Memo Workflow

[](#refunds--credit-memo-workflow)

- When processing a return, select the "Refund as Store Credit" option.
- The refunded amount is added to the customer's store credit balance.
- Customers can use the store credit for future purchases.
- All transactions are logged in the store\_credit\_history table for tracking. [![8](https://private-user-images.githubusercontent.com/101514766/432201644-1e6d6251-8579-4d66-9dfe-466993b49583.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxNjQ0LTFlNmQ2MjUxLTg1NzktNGQ2Ni05ZGZlLTQ2Njk5M2I0OTU4My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYTY3N2Q5MjZkZTk3MzA2Yjg4MTc5NWFlZjBkNmFhNDhiZjczMTMzNDlhYzljZmVkMGYyMDZiMWY2YTFjZGRkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.laQ31PO4Ys4DOpexjIrY7qMdVagXIxX4zAXMBRFUP98)](https://private-user-images.githubusercontent.com/101514766/432201644-1e6d6251-8579-4d66-9dfe-466993b49583.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxNjQ0LTFlNmQ2MjUxLTg1NzktNGQ2Ni05ZGZlLTQ2Njk5M2I0OTU4My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYTY3N2Q5MjZkZTk3MzA2Yjg4MTc5NWFlZjBkNmFhNDhiZjczMTMzNDlhYzljZmVkMGYyMDZiMWY2YTFjZGRkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.laQ31PO4Ys4DOpexjIrY7qMdVagXIxX4zAXMBRFUP98)

### Refunds &amp; Store Credit Management

[](#refunds--store-credit-management)

#### Partial &amp; Full Refunds:

[](#partial--full-refunds)

- When issuing a refund, choose between a partial or full refund to store credit.
- The refunded amount is automatically added to the customer's store credit balance.
- The order status updates accordingly.

### Project Structure

[](#project-structure)

**Storefront - Key Files/Folders**

- Controller Folder: Defines the store credit balance table and store credit history with API.
- CartSubscriber.php: Checks if the user has used the store credits.
- OrderRefundSubscriber.php: It handles the refund as store credit option
- CustomCheckoutController.php: Defines store credit as a payment option.

**Core - Key Files/Folders:**

- Entities/StoreCredit.php: Manages store credit data model.
- Entities/StoreCreditHistory.php: Logs store credit transactions.

**Resources - Key Files/Folders:**

- services.xml: Registers services for dependency injection.
- routes.xml: Declares API routes.

**Admin Panel - Key Features:**

- View history, add, and deduct store credit in customer details.
- Generate reports on credit usage.

### API Endpoints

[](#api-endpoints)

**Get Store Credit Balance**
\- **Path**: /store-api/store-credit/balance/{customer\_id}
\- **Method**: GET
\- **Purpose**: Fetches the current store credit balance of a customer.
\- **Response**: Returns the available credit balance.

**Add Store Credit**
\- **Path**: /store-api/store-credit/add
\- **Method**: POST
\- **Request Body**:
\- customer\_id (string, required)
\- amount (float, required)
\- reason (string, optional) Response: Returns updated store credit details.

**Deduct Store Credit**
\- **Path**: /store-api/store-credit/deduct
\- **Method**: POST
\- **Request Body**:
\- customer\_id (string, required)
\- amount (decimal, required)
\- order\_id (string, optional) Response: Returns updated store credit details.

\- **Refund to Store Credit**
\- **Path**: /store-api/store-credit/add
\- **Method**: POST
\- **Request Body**:
\- order\_id (string, required)
\- amount (decimal, required) Response: Refund processed and logged in credit history.
\- reason (string, optional).

### Use from end-users - Checkout Integration

[](#use-from-end-users---checkout-integration)

- Customers can choose to apply store credit as payment during checkout. [![9](https://private-user-images.githubusercontent.com/101514766/432201767-02ec29e2-17b6-4f25-9b9c-fd8a387c2b7b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxNzY3LTAyZWMyOWUyLTE3YjYtNGYyNS05YjljLWZkOGEzODdjMmI3Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYjRhOWRkMTYwMDIyZDhlYjBiMTNkZjkyZjEyMWIwOGM5ZjdmZjI2OWZjNTRiNGM3ZGVkMTg0NGYyYTk1YmQxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.5d4jWJCqXG3yNNv-nUS0hNCsBfiBd3YnyASmi-GGuHo)](https://private-user-images.githubusercontent.com/101514766/432201767-02ec29e2-17b6-4f25-9b9c-fd8a387c2b7b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0Mzc5MjYsIm5iZiI6MTc3NTQzNzYyNiwicGF0aCI6Ii8xMDE1MTQ3NjYvNDMyMjAxNzY3LTAyZWMyOWUyLTE3YjYtNGYyNS05YjljLWZkOGEzODdjMmI3Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwNlQwMTA3MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYjRhOWRkMTYwMDIyZDhlYjBiMTNkZjkyZjEyMWIwOGM5ZjdmZjI2OWZjNTRiNGM3ZGVkMTg0NGYyYTk1YmQxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.5d4jWJCqXG3yNNv-nUS0hNCsBfiBd3YnyASmi-GGuHo)
- Partial and full store credit application supported.
- Remaining balance is paid via an alternative payment method.
- When an admin creates an order he can use the store credits of the customer he chooses, first you add the product in admin order creation, then you add another line item as credit and you use the specific name “Store credit discount“.

Store Credit Plugin - API Documentation
=======================================

[](#store-credit-plugin---api-documentation)

This document describes the API endpoints provided by the Store Credit Plugin for Shopware 6. These endpoints allow authorized users to manage store credits for customers and apply store credits during checkout.

---

Add Store Credit
----------------

[](#add-store-credit)

**Endpoint**
`POST /api/store-credit/add`

### Description

[](#description)

Adds a store credit amount to a specific customer’s balance. This can optionally be linked to an order and currency.

### Request Headers

[](#request-headers)

```
Authorization: Bearer
Content-Type: application/json

```

### Example Request Body

[](#example-request-body)

```
{
  "customerId": "3c2a178f96b7345ad27051c34609e52",
  "amount": 50.0,
  "reason": "Manual admin adjustment"
}
```

### Successful Response

[](#successful-response)

```
{
  "success": true,
  "historyId": "f84b5a7a4fce4a1db9d693c8be304a1e"
}
```

### Example Error Response

[](#example-error-response)

```
{
  "success": false,
  "message": "Customer ID is missing."
}
```

---

Deduct Store Credit
-------------------

[](#deduct-store-credit)

**Endpoint**
`POST /api/store-credit/deduct`

### Description

[](#description-1)

Deducts a store credit amount from a customer’s balance. The deduction can include a reason for logging purposes.

### Request Headers

[](#request-headers-1)

```
Authorization: Bearer
Content-Type: application/json

```

### Example Request Body

[](#example-request-body-1)

```
{
  "customerId": "3c2a178f96b7345ad27051c34609e52",
  "amount": 20.0,
  "reason": "Refund adjustment"
}
```

### Successful Response

[](#successful-response-1)

```
{
  "success": true,
  "historyId": "a9d2554b0ce847cd82f3ac9bd1c0aa2f"
}
```

### Example Error Response

[](#example-error-response-1)

```
{
  "success": false,
  "message": "Amount exceeds the maximum allowed credit for order."
}
```

---

Get Store Credit Balance
------------------------

[](#get-store-credit-balance)

**Endpoint**
`GET /api/store-credit/balance`

### Description

[](#description-2)

Retrieves the current store credit balance for a customer.

### Request Headers

[](#request-headers-2)

```
Authorization: Bearer

```

### Example Request

[](#example-request)

```
GET /api/store-credit/balance?customerId=3c2a178f96b7345ad27051c309e52

```

### Successful Response

[](#successful-response-2)

```
{
  "success": true,
  "balance": 80.0,
  "currencyId": "b7d2554b0ce847cd82f3ac9bd1c0dfca"
}
```

### Example Error Response

[](#example-error-response-2)

```
{
  "success": false,
  "message": "Customer not found."
}
```

---

Authentication Note
-------------------

[](#authentication-note)

These endpoints are protected and require a Bearer token obtained through the Shopware Admin API.

Best Practices
--------------

[](#best-practices)

- **Enable Store Credit Refunds**

    - Ensure the **Store Credit Refund Type** option is activated in **Settings &gt; System &gt; Plugins**.
    - Allows refunds to be issued as store credit instead of cash.
- **Set Per-Order Credit Limits**

    - Define a maximum limit for store credit usage per order (e.g., 50 euros).
    - Helps control how much credit can be used during checkout.
- **Monitor Store Credit Transactions**

    - Regularly check the store credit transaction logs to track customer usage.
    - This helps to avoid errors and discrepancies.
- **Inform Customers About Their Credit**

    - Make sure customers can see their available store credit balance in their account.
    - Send notifications when store credit is added or used.
- **Test Before Going Live**

    - Test different scenarios, such as refunds, partial payments, and store credit applications during checkout.
    - Ensure everything functions properly before launching.
- **Use API to Customize for Your Needs**

    - Use API endpoints to customize store credit rules and integrate with other store functions.
    - This allows for flexibility in how store credit is applied.
- **Restrict Store Credit for Certain Products**

    - If necessary, restrict store credit usage for specific products or sales channels.
    - This ensures store credit is used where appropriate.

Troubleshooting
---------------

[](#troubleshooting)

- **Store credit is not appearing at checkout**

    - Ensure the **Store Credit Refund Type** is activated in the plugin settings.
    - Check if the customer has enough store credit in their account.
- **Refunds not issued as store credit**

    - Verify that the refund method is set to **Store Credit** when processing returns.
    - Check for conflicts with other refund-related plugins.
- **Customer’s store credit balance is not updating**

    - Ensure scheduled tasks are running with the following commands: ```
        bin/console scheduled-task:register
        bin/console scheduled-task:run
        bin/console messenger:consume
        ```
    - Verify the store credit history is being logged in the database.
- **Admins cannot modify store credit**

    - Ensure the admin has the necessary permissions to edit customer store credit.
    - Double-check that API calls for store credit adjustments are functioning.
- **Orders not using store credit during checkout**

    - Ensure there is no restriction on store credit for the selected products.
    - Verify that the credit amount is within the allowed per-order limit.

FAQ
---

[](#faq)

- **Can I restrict store credit usage to specific products?**

    - Yes, you can restrict store credit usage for specific products or categories through the **Post Purchase Features**.
- **How do I add store credit to a customer's account?**

    - Admins can add store credit manually through the **Customer Details** section in the admin panel.
- **Can store credit expire?**

    - Currently, the plugin does not support automatic expiration of store credit, but this feature can be customized.
- **Can customers see their store credit balance?**

    - Yes, customers can view their available balance and transaction history in their account settings.

Wiki Documentation
------------------

[](#wiki-documentation)

Read more about the plugin configuration on our Wiki.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance82

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~35 days

Total

5

Last Release

89d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2851766651e9958fdd1740394d7af4c76bb357dba37485ab7045c5372bd3ed88?d=identicon)[solution-25](/maintainers/solution-25)

---

Top Contributors

[![solution-25](https://avatars.githubusercontent.com/u/101514766?v=4)](https://github.com/solution-25 "solution-25 (19 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/solution25-store-credit/health.svg)

```
[![Health](https://phpackages.com/badges/solution25-store-credit/health.svg)](https://phpackages.com/packages/solution25-store-credit)
```

###  Alternatives

[shopware/production

178190.0k](/packages/shopware-production)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)[kiener/mollie-payments-plugin

Mollie Payments

6257.6k](/packages/kiener-mollie-payments-plugin)[shopware/administration

Administration frontend for the Shopware Core

413.9M75](/packages/shopware-administration)[frosh/tools

Provides some basic things for managing the Shopware Installation

79709.7k2](/packages/frosh-tools)[adyen/adyen-shopware6

Official Shopware 6 Plugin to connect to Payment Service Provider Adyen

23111.2k](/packages/adyen-adyen-shopware6)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
