You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### How the webhooks are handle into this gateway ?
105
-
106
-
The starting point is always an `Action` with Payum and generically you have to use `Notify*Action` to handle webhooks.
107
-
108
-
Because we have to set a static url without any token variable params on Stripe backend,
109
-
we can't use `NotifyAction` but we can use [`NotifyUnsafeAction`](src/Action/NotifyAction.php) instead.
110
-
111
-
This `Action` will ask for 2 other actions to :
112
-
113
-
1. Resolve the webhook event, meaning :
114
-
- retrieve the Stripe signature in the request headers.
115
-
- try to construct the webhook `Event` object checking it with the webhook secret key.
116
-
2. Give this resolved `Event` to an `Action` able to consume this `Event`.
117
-
118
-
So if you want to consume another webhook event type, you just need to create an `Action` extending `Prometee\PayumStripeCheckoutSession\Action\Api\WebhookEvent\AbstractWebhookEventAction`.
119
-
Examples available into the `src/Action/Api/WebhookEvent` folder.
120
-
121
-
## TODO
122
-
123
-
- Add a `RefundAction` if it's possible just with Payum interface.
124
-
- Add Subscription basic webhooks.
125
-
- Add `Extension` or `ConvertPayment` to handle subscription and card storing.
0 commit comments