Adyen / adyen-shopware6

Adyen Payment plugin for Shopware 6
MIT License
21 stars 22 forks source link

[CS-5938] Add explicit association for deliveries.stateMachineState in webhooks #551

Closed goran-stamenkovski-logeecom closed 1 month ago

goran-stamenkovski-logeecom commented 2 months ago

Summary

When an openInvoice AUTHORISATION webhook is received, the webhook never completes processing if the "Capture on Shipment for OpenInvoice Payment Methods" option is enabled. It always stays in processing and causes downstream issues for captures for manual captures. Order is marked as paid but not fully completed.

The issue is caused by the delivery object doesn't return stateMachineState object by default anymore for Shopware 6.6. The association must be included explicitly.

Tested scenarios

OopenInvoice AUTHORISATION webhook processing with the "Capture on Shipment for OpenInvoice Payment Methods" option enabled.

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud