fond-of-spryker / oms-external-processor-payone
Spryker OMS External Processor Payone Module.
Installs: 16 261
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
- fond-of-spryker/oms-external-processor: dev-master
- spryker/oms: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0 || ^11.0.0
- spryker/store: ^1.0.0
Requires (Dev)
- codeception/codeception: ^2.3
- fond-of-codeception/spryker: dev-master as 1.0.0
- mikey179/vfsstream: ^1.6
- phpro/grumphp: ^0.14
- sebastian/phpcpd: ^4.0
- spryker/code-sniffer: ^0.11
- spryker/development: ^3.6
- spryker/testify: ^3.29
This package is auto-updated.
Last update: 2024-12-12 19:06:40 UTC
README
Plugin for the external processor module: https://packagist.org/packages/fond-of-spryker/oms-external-processor Wait for the order that all items are captured and then process at once instead of sending or exporting a splitted order.
Installation
composer require fond-of-spryker/oms-external-processor-payone
Configuration
Extend in PYZ the OmsExternalProcessorDependencyProvider
/**
* @return \FondOfSpryker\Zed\OmsExternalProcessor\Dependency\Plugin\ExternalProcessorPluginInterface[]
*/
protected function getExternalProcessorPlugins(): array
{
return [
new PayoneCaptureCheckExternalProcessorPlugin()
];
}
Remove or set the on enter
event in the oms configuration to false
<event name="send-order-confirmation" manual="false" onEnter="false" command="OrderConfirmationBcc/SendOrderConfirmationWithBccPlugin"/>
<transition happy="true">
<source>captured</source>
<target>order-confirmation sent</target>
<event>send-order-confirmation</event>
</transition>
By default, it processes only orders in state captured
and move / throws event send order confirmation
. You can change those via config.
$config[\FondOfSpryker\Shared\OmsExternalProcessorPayone\OmsExternalProcessorPayoneConstants::EVENT_NAME] = 'send order confirmation';
$config[\FondOfSpryker\Shared\OmsExternalProcessorPayone\OmsExternalProcessorPayoneConstants::CAPTURED_STATE_NAME] = 'captured';
$config[\FondOfSpryker\Shared\OmsExternalProcessorPayone\OmsExternalProcessorPayoneConstants::MAX_AGE_IN_DAYS] = 7;
Usage
Run 'vendor/bin/console oms:external:process -r PayoneCaptureCheckExternalProcessorPlugin' or create job