Send a notification on order placed via gateway #1218
Replies: 2 comments 1 reply
-
Have you setup the Stripe webhook? I believe it's responsible for calling the code that dispatches the relevant events. |
Beta Was this translation helpful? Give feedback.
-
I did, but of course my local environment is not reachable from outside. In the current scenario, a failed payment will not trigger any notification to anyone when the order is completed. That's why I thought it could be an interesting feature ! Also, thank you for the great job on the plugin @duncanmcclean ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
I'm currently working on notifications during checkout process. I couldn't get to send a notification during a stripe payment (no callback on local environment), and while investigating, I found out that the status in the GatewayCallbackController is updated via
$order->status(OrderStatus::Placed)->save();
and not with theupdateOrderStatus()
method.simple-commerce/src/Http/Controllers/GatewayCallbackController.php
Line 47 in b832b87
I can imagine why (not sending a notification of order placed then a notification of order paid quickly after), but I wondered if it would be interesting to offer this option in configuration ?
If so, I could work on it with pleasure.
Beta Was this translation helpful? Give feedback.
All reactions