Provides SyncAPI and AsyncAPI schema files and the needed code to be used in a Payment Service Provider App.
composer require spryker/app-merchant
config/Shared/config_default.php
use Spryker\Shared\AppMerchant\AppConstants;
$config[AppConstants::APP_IDENTIFIER] = getenv('APP_IDENTIFIER') ?: 'hello-world';
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
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,
];