Download the PHP package spryker/app-merchant without Composer

On this page you can find all versions of the php package spryker/app-merchant. 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 app-merchant

AppMerchant Module

Latest Stable Version Minimum PHP Version

Provides SyncAPI and AsyncAPI schema files and the needed code to be used in a Payment Service Provider App.

Installation

Testing the AppMerchant

You can test the AppMerchant as usual with Codeception. Before that you need to run some commands:

With these commands you've set up the AppMerchant and can start the tests

Documentation

The AppMerchant package contains the Spryker Glue Application code with a controller and a routing plugin that enables the Mini-Framework to onboard Spryker Merchants to an App. The Route Plugin provides the following URL:

This endpoint is used by Merchants after the Spryker application (tenant) is notified via the ReadyForMerchantAppOnboarding message. When an App uses the AppMerchant package and needs Merchant Onboarding to the App the \Spryker\Zed\AppMerchant\Communication\Plugin\AppKernel\InformTenantAboutMerchantAppOnboardingReadinessConfigurationAfterSavePlugin needs to be added on the App's project level code.

High-Level Architecture

Features

Tenant Onboarding

Before Merchants can be boarded to an App it is required that the Tenant's application is enabled to use this App. When an App config is created/updated the ReadyForMerchantAppOnboarding message will be sent to the Tenant. It contains the following information which can be different for each App implementation:

Further reading: https://spryker.atlassian.net/wiki/spaces/AOP/pages/4179623996

Merchant Onboarding

This is the process where Merchants of a Tenant go through the onboarding process provided by the App.

Configuration

Configure the MessageBroker

Add the following to your project:

Database

This package adds the following database tables to the App:

This package updates the following database table:

Plugins

This package provides the following plugins

Glue

Zed

MerchantAppOnboardingBackendApiRouteProviderPlugin

This plugin can be added to the \Pyz\Glue\GlueBackendApiApplication\GlueBackendApiApplicationDependencyProvider::getRouteProviderPlugins().

InformTenantAboutMerchantAppOnboardingReadinessConfigurationAfterSavePlugin

This plugin can be added to the \Pyz\Zed\AppKernel\AppKernelDependencyProvider::getConfigurationAfterSavePlugins() that is explained in the AppKernel documentation. When this plugin is used and the configuration of an App gets created/updated the ReadyForMerchantAppOnboarding message will be sent to the Tenant. See Tenant Onboarding.

MerchantsPaymentTransmissionsRequestExtenderPlugin

This plugin can be added to the \Pyz\Zed\AppPayment\AppPaymentDependencyProvider::getPaymentTransmissionRequestExtenderPlugins() that is explained in the AppPayment documentation. When this plugin is used and via the AppPayment package a “payout“ is requested this plugin groups orders for “payouts“ by Merchants so each Merchant will get all payments for items of one Order transferred to him.

AccountUpdatedWebhookHandlerPlugin

This plugin can be added to the \Pyz\Zed\AppWebhook\AppWebhookDependencyProvider::getWebhookHandlerPlugins() that is explained in the AppWebhook documentation. When this plugin is used and can handle a webhook that comes from a third-party provider for notifications of an updated account on the third-party side.

Inside of this plugin, the \Spryker\Zed\AppMerchantExtension\Dependency\Plugin\MerchantAppOnboarding\AppMerchantPlatformPluginInterface::handleWebhook() method will be used. The WebhookRequestTransfer object will contain the loaded AppConfig and the Merchant. Depending on the implementation of the App you will get back a WebhookResponseTransfer that will be used to update the Merchant Onboarding status on the Tenant side as well as in the database of the App itself. To do so, a MerchantAppOnboardingStatusChanged message will be sent. This message is handled on the Tenant side and updates the database as needed.

Extension

This package provides the following extension points

Zed

AppMerchantPlatformPluginInterface

This extension provides the following methods:


All versions of app-merchant with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
spryker/app-kernel Version ^2.1.0
spryker/app-payment Version ^2.0.0 || ^3.0.0
spryker/app-webhook Version ^1.0.0
spryker/event-dispatcher Version ^1.6.0
spryker/glue-application-extension Version ^1.0.0
spryker/glue-backend-api-application Version ^1.7.0
spryker/glue-json-api-convention Version ^1.3.0
spryker/http Version ^1.11.0
spryker/kernel Version ^3.30.0
spryker/log Version ^3.0.0
spryker/message-broker Version ^1.11.0
spryker/message-broker-aws Version ^1.7.0
spryker/propel Version ^3.40.0
spryker/router Version ^1.19.0
spryker/transfer Version ^3.33.0
spryker/translator Version ^1.13.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 spryker/app-merchant contains the following files

Loading the files please wait ....