-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhook Status not updating #10
Comments
This was referenced Dec 12, 2023
@solverat Do you want to get permissions here so your fixes can be done here? |
@dpfaffenbauer I've already fixed it in my fork because I needed this ASAP :) - but yes, maintaining this repository would make more sense. |
@solverat done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if even someone here is maintaining or using this repository (@dpfaffenbauer, @ramundomario, @BlackbitDevs) - I've already forked this repo a while ago, and I'll also fix it there. Since this took my a full day of debugging/hunting/reading/comparing, you might be interested:
If you're using payments like SOFORT / Klarna, you need to rely on webhooks because payments gets authorized only first. But there are two issues with CoreShop:
I. Order never gets in confirmed state
This is a fundamental problem of CoreShop, I'll open a dedicated ticket for that on CoreShop side.
The user never reaches the success page, because stripe returns with state
processing
which is not a "success" state in CoreShop:https://github.com/coreshop/CoreShop/blob/a1a456fdefaa259f791cc3a0b04c05be183948e5/src/CoreShop/Bundle/PayumBundle/Action/ResolveNextRouteAction.php#L44-L45
(and other two places)
Reference: In Sylius they already made some adjustment to handle processing/pending payments:
II. Payment State not updating
If stripe dispatches the
checkout.session.async_payment_succeeded
webhook, the payment details will be updated but not the payment state => I have no Idea why. I've fixed it by adding an extension which is basically the same as SyliusPayumStripePlugin is using:https://github.com/FLUX-SE/SyliusPayumStripePlugin/blob/master/src/Extension/UpdatePaymentStateExtension.php
The text was updated successfully, but these errors were encountered: