Download the PHP package solution25/store-credit without Composer

On this page you can find all versions of the php package solution25/store-credit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package store-credit

1

Store Credit

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

Compatibility

Get Started

Installation & Activation

  1. Download
  1. Install the Plugin in Shopware 6
  1. Activate the Plugin
  1. Verify Installation

Plugin Configuration

  1. Access Plugin Settings

    • Go to Settings > System > 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

2. Store Credit Add State: Toggle to enable or disable the feature.
3. Post Purchase Features: Restrict store credit usage to specific products.
4

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

Admins can manually add or deduct store credit from a customer’s account. 6 7

Refunds & Credit Memo Workflow

Refunds & Store Credit Management

Partial & Full Refunds:

Project Structure

Storefront - Key Files/Folders

Core - Key Files/Folders:

Resources - Key Files/Folders:

Admin Panel - Key Features:

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

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

Endpoint
POST /api/store-credit/add

Description

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

Request Headers

Example Request Body

Successful Response

Example Error Response


Deduct Store Credit

Endpoint
POST /api/store-credit/deduct

Description

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

Request Headers

Example Request Body

Successful Response

Example Error Response


Get Store Credit Balance

Endpoint
GET /api/store-credit/balance

Description

Retrieves the current store credit balance for a customer.

Request Headers

Example Request

Successful Response

Example Error Response


Authentication Note

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

Best Practices

Troubleshooting

FAQ

Wiki Documentation

Read more about the plugin configuration on our [Wiki]().


All versions of store-credit with dependencies

PHP Build Version
Package Version
Requires shopware/core Version ~6.6.0
shopware/storefront Version ~6.6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package solution25/store-credit contains the following files

Loading the files please wait ...