spryker / app-merchant
AppMerchant 模块
2.2.0
2024-09-23 12:46 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.2.0
- 2.1.0
- dev-master / 2.0.x-dev
- 2.0.0
- 1.0.1
- 1.0.0
- dev-feature/acp-3795/master-update-stripe-metadata-1
- 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-2930/master-stripe-app-disconnection-criteria
- dev-feature/acp-2626-docs
This package is auto-updated.
Last update: 2024-09-23 13:01:06 UTC
README
提供 SyncAPI 和 AsyncAPI 架构文件以及用于支付服务提供商应用的所需代码。
安装
composer require spryker/app-merchant
配置
应用标识符
config/Shared/config_default.php
use Spryker\Shared\AppMerchant\AppConstants;
$config[AppConstants::APP_IDENTIFIER] = getenv('APP_IDENTIFIER') ?: 'hello-world';
测试 AppMerchant
您可以使用 Codeception 通常是来测试 AppMerchant。在此之前,您需要运行一些命令
composer setup
使用这些命令,您已设置好 AppMerchant 并可以开始测试
vendor/bin/codecept build
vendor/bin/codecept run
配置消息代理
将以下内容添加到您的项目中
$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,
];