- Issue created by @marchuk.vitaliy
- First commit to issue fork.
- Merge request !131Issue #3476156 by tomtech, vmarchuk: 2 payments are created per order with the... β (Merged) created by TomTech
-
tomtech β
committed c5dc1e84 on 8.x-1.x
Issue #3476156 by tomtech, vmarchuk: 2 payments are created per order...
-
tomtech β
committed c5dc1e84 on 8.x-1.x
Automatically closed - issue fixed for 2 weeks with no activity.
- π«π·France nicolas bouteille
From what I understand, when webhooks are enabled, Commerce and thus Commerce Stripe as well, are relying on both the return page and webhooks to mark the order as "paid" and complete. Is this the reason why 2 payments were mistakenly created here?
From what I read, when relying on webhooks to finalize the order, the return page should not try to finalize it as well anymore. Do you know why the choice has been made to keep using both these mechanisms side by side? Also, can you explain how you fixed this problem? I tried to understand the code behind the merge request 131 but did not understand it. To prevent this from happening, do we need to use "automatic_async" capture_method so that the webhooks are called faster hoping they get called before the return page?
Thank you for your enlightenments