Complete the checkout flow when an order get placed by the webhook

Created on 12 April 2024, 6 months ago

Problem/Motivation

Currently, if an order gets placed by the webhook /webhooks/order/{commerce_order}/place the order gets placed but there are some issues:
1. The order entity does not have an attached checkout_flow entity
2. Because of the missing checkout_flow entity attached to the order, many things are not triggered, for example, these:

Steps to reproduce

Place an order by using the mentioned webhook: /webhooks/order/{commerce_order}/place

Proposed resolution

Alter the webhook class src/Controller/WebhookController.php the method handleTransition by attaching the checkout_flow entity to the order and dispatching the checkout flow completion event when the order gets placed.

Remaining tasks

Write a proper patch for this issue.

User interface changes

No.

API changes

Webhook: /webhooks/order/{commerce_order}/place

Data model changes

No.

💬 Support request
Status

Closed: works as designed

Component

Code

Created by

🇲🇩Moldova andrei.vesterli Chisinau

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024