It could be interesting to avoid using the webhooks during a payment while being in test mode or when the store is not an online one and the webhooks are not easily reachable.
Steps to get this feature working would be :
[x] create a new notify token and use it hash to retrieve the payment when webhook is triggered
[x] use NotifyAction with this token and consume it with a SyncAction
[x] switch the $model['*_url'] to $token->getTargetUrl()
The capture URL will be reached by the customer at the end of the Stripe Checkout Session allowing Sync to be called and then the payment will be updated at it latest status.
Note: some very rare cases should required to poll Stripe API to retrieve the latest PaymentIntent.
It could be interesting to avoid using the webhooks during a payment while being in test mode or when the store is not an online one and the webhooks are not easily reachable.
Steps to get this feature working would be :
NotifyAction
with this token and consume it with aSyncAction
$model['*_url']
to$token->getTargetUrl()
The capture URL will be reached by the customer at the end of the Stripe Checkout Session allowing Sync to be called and then the payment will be updated at it latest status.Note: some very rare cases should required to poll Stripe API to retrieve the latest
PaymentIntent
.