Closed Kovaloff closed 2 years ago
Hi @Kovaloff,
flux-se/payum-stripe-bundle
?It can be two things :
For the first point check using your terminal that the url is well formatted :
./bin/console debug:router payum_notify_do_unsafe
# should be like this for example :
# +--------------+-------------------------------------------------------------------------------------+
# | Property | Value |
# +--------------+-------------------------------------------------------------------------------------+
# | Route Name | payum_notify_do_unsafe |
# | Path | /payment/notify/unsafe/{gateway} |
# | Path Regex | {^/payment/notify/unsafe/(?P<gateway>[^/]++)$}sD |
# ....
# Resulting url could be : https://mydomain.tld/payment/notify/unsafe/stripe_checkout_session
# if your gateway name is "stripe_checkout_session"
If it's the second point here is how a webhook is handle and you can then xDebug it step by step to discover what's goes wrong :
Notify
wich is supported by this action : NotifyActionResolveWebhookEvent
suported by this action : ResolveWebhookEventActionResolveWebhookEventAction
is in charge of checking the webhook signature and to create a wrapper class containing the webhook data and the webhook key validating it (EventWrapper interface).NotifyAction
to consume the webhook event by any class supporting it (list of all action consuming webhook events and this files only used for stripe_checkout_session
factory)Your issue could be in one of those files CheckoutSessionAsyncPaymentSucceededAction extending the AbstractPaymentAction.
Hello @Kovaloff
I think I found the issue you had, if you are using the mode "authorize" then the WebhookEvent Action handling the events : payment_intent.canceled
and payment_intent.succeeded
were not handle properly.
This is now fix and I'm about to make a new release.
Hi @Prometee
Great news, so its already released ?
@Kovaloff yes it is 😉
@Prometee do you know what is the delay on packagist after new release? updated the package in my project, but cannot find your changes
It depends on the cache you have but normally it take minutes to be available.
@Prometee thanks, everything works fine
Hi, I'm using your bundle (stripe checkout ) in the Symfony app and everything works fine except for one issue with the webhook events -
All events except 'checkout.session.completed' do not work
Request WebhookEvent{model: EventWrapper} is not supported. Make sure the gateway supports the requests and there is an action which supports this request (The method returns true). There may be a bug, so look for a related issue on the issue tracker. (500 Internal Server Error)
Maybe you have some suggestions? Thanks