spryker / app-merchant
AppMerchant module
2.1.0
2024-09-20 09:43 UTC
Requires
- php: >=8.1
- spryker/glue-application-extension: ^1.0.0
- spryker/kernel: ^3.30.0
- spryker/log: ^3.0.0
- spryker/message-broker: ^1.11.0
- spryker/transfer: ^3.33.0
Requires (Dev)
- codeception/codeception: ^5.0
- codeception/module-asserts: ^3.0.0
- codeception/module-cli: ^2.0.0
- codeception/module-filesystem: ^3.0.0
- codeception/module-phpbrowser: ^3.0.0
- codeception/module-rest: ^3.0.0
- codeception/module-webdriver: ^3.0.0
- codeception/phpunit-wrapper: ^9.0.0
- galbar/jsonpath: ^3.0
- infection/codeception-adapter: ^0.4.3
- infection/infection: ^0.29.6
- phpstan/phpdoc-parser: 1.25.0
- phpstan/phpstan: 1.10.66
- rector/rector: ^0.19.0
- spryker-sdk/async-api: dev-master as 0.3.1
- spryker/app-kernel: ^1.0.0
- spryker/app-payment: ^2.0.0
- spryker/app-webhook: ^1.0.0
- spryker/code-sniffer: *
- spryker/container: *
- spryker/development: ^3.34.0
- spryker/event-dispatcher: ^1.6
- spryker/glue-backend-api-application: *
- spryker/glue-json-api-convention: ^1.3
- spryker/http: ^1.11
- spryker/message-broker-aws: *
- spryker/propel: *
- spryker/router: ^1.19
- spryker/testify: *
- spryker/testify-async-api: *
- spryker/translator: ^1.13
- dev-main
- 2.1.0
- dev-master / 2.0.x-dev
- 2.0.0
- 1.0.1
- 1.0.0
- dev-feature/acp-3507-investigate-how-the-apis-to-enable-projects-embed-payment-elements-to-yves-or-in-headless-scenario-should-be-built
- dev-feature/acp-3795/master-update-stripe-metadata
- dev-feature/acp-2930/master-stripe-app-disconnection-criteria
- dev-feature/acp-2626-docs
This package is auto-updated.
Last update: 2024-09-20 09:48:50 UTC
README
Provides SyncAPI and AsyncAPI schema files and the needed code to be used in a Payment Service Provider App.
Installation
composer require spryker/app-merchant
Configure
App Identifier
config/Shared/config_default.php
use Spryker\Shared\AppMerchant\AppConstants;
$config[AppConstants::APP_IDENTIFIER] = getenv('APP_IDENTIFIER') ?: 'hello-world';
Testing the AppMerchant
You can test the AppMerchant as usual with Codeception. Before that you need to run some commands:
composer setup
With these commands you've set up the AppMerchant and can start the tests
vendor/bin/codecept build
vendor/bin/codecept run
Configure the MessageBroker
Add the following to your project:
$config[MessageBrokerConstants::MESSAGE_TO_CHANNEL_MAP] =
$config[MessageBrokerAwsConstants::MESSAGE_TO_CHANNEL_MAP] = [
ReadyForMerchantAppOnboardingTransfer::class => 'merchant-app-events',
MerchantAppOnboardingStatusChangedTransfer::class => 'merchant-app-events',
];
$config[MessageBrokerConstants::CHANNEL_TO_TRANSPORT_MAP] = [
'merchant-app-events' => MessageBrokerAwsConfig::HTTP_TRANSPORT,
];
$config[MessageBrokerAwsConstants::CHANNEL_TO_SENDER_TRANSPORT_MAP] = [
'merchant-app-events' => MessageBrokerAwsConfig::HTTP_TRANSPORT,
];