tonioseiler / craft-commerce-wallee

Craft Commerce Payment Gateway for Wallee
Other
1 stars 0 forks source link

Order Status not updated by webhook #4

Closed frederik-station closed 1 month ago

frederik-station commented 1 month ago

Craft: 4.11.5 Craft Commerce: 4.6.10 Wallee: 2.3.12

After completing an order via the payment form, the order status in Craft is not updated by the Wallee webhook but remains in my default "New" state.

Here is my mapping of Wallee Payment States to Craft Order States:

image

The webhook invocation shows up as "successful" in Wallee and I see some logs regarding the order status change:

2024-09-13 17:11:14 [web.INFO] [craft-commerce-wallee] Wallee state: FULFILL
2024-09-13@17:11:14
staging
php
stderr
2024-09-13 17:11:14 [web.INFO] [craft-commerce-wallee] change order status: 5-2
2024-09-13@17:11:14
staging
php
stderr

When I manually trigger a resend of the webhook invocation via the Wallee Backend, the order status is correctly updated in Craft.

tonioseiler commented 1 month ago

Hi Frederick,

We will look at this asap. Are the log file triggered by the transaction or when you fire it manually? What is order state 2 in your case? the orders shoudl be changed to this state according to your logs.

frederik-station commented 1 month ago

Thx Tonio!

The logs were triggered by the transaction.

Here are my order state IDs:

image
tonioseiler commented 1 month ago

@frederik-station The bug shluld be resolved in the latest version of the plugin....

station-ag commented 4 days ago

@tonioseiler sorry for the late reply. The fix seems to have broken sth. After simulating the payment no order is created and the line items remain in the cart.