-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[FW][IMP] payment_stripe: support webhooks #71558
[FW][IMP] payment_stripe: support webhooks #71558
Conversation
Ping @simongoffin stderr:
Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?). In the former case, you may want to edit this PR message as well. |
0061abc
to
63adf98
Compare
@robodoo override=ci/security cf source pr |
@simongoffin there is an upgrade exception active for this pr. |
❗ Do not forward port without merging #71933 before |
9f0e7e7
to
9fb18d9
Compare
@simongoffin I fixed all unit tests, and tested the full flow using stripe test environment with success. if 'metadata' in data and not data.get('metadata').get('reference'):
data['metadata']['reference'] = reference |
9fb18d9
to
0e56d1b
Compare
Allow configuring a webhook in Stripe to send s2s notifications to Odoo when a Checkout payment is completed. Note that SetupIntent and PaymentIntent events are not listened to, since they are handled 'live' with the customer actively present; the main use case for Stripe webhooks is a Checkout session that gets interrupted before the customer is redirected to Odoo (e.g. network loss, browser crash, closing the tab, etc.). The webhook should be configured to send its events to <base_url>/payment/stripe/webhook and should only subscribe to checkout.session.completed events to avoid spamming the Odoo server with useless notifications. opw-2488452 opw-2451463 opw-2449738 BACKPORT of commit: dc4f6ad Should not be merged beyond 14.0 (14.0 excluded) X-original-commit: 443da3a
0e56d1b
to
67fbb30
Compare
robodoo r+ |
Allow configuring a webhook in Stripe to send s2s notifications to Odoo when a Checkout payment is completed. Note that SetupIntent and PaymentIntent events are not listened to, since they are handled 'live' with the customer actively present; the main use case for Stripe webhooks is a Checkout session that gets interrupted before the customer is redirected to Odoo (e.g. network loss, browser crash, closing the tab, etc.). The webhook should be configured to send its events to <base_url>/payment/stripe/webhook and should only subscribe to checkout.session.completed events to avoid spamming the Odoo server with useless notifications. opw-2488452 opw-2451463 opw-2449738 BACKPORT of commit: dc4f6ad Should not be merged beyond 14.0 (14.0 excluded) closes #71558 X-original-commit: 443da3a Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Allow configuring a webhook in Stripe to send s2s notifications to Odoo
when a Checkout payment is completed. Note that SetupIntent and
PaymentIntent events are not listened to, since they are handled 'live'
with the customer actively present; the main use case for Stripe
webhooks is a Checkout session that gets interrupted before the customer
is redirected to Odoo (e.g. network loss, browser crash, closing the
tab, etc.).
The webhook should be configured to send its events to
<base_url>/payment/stripe/webhook and should only subscribe to
checkout.session.completed events to avoid spamming the Odoo server with
useless notifications.
opw-2488452
opw-2451463
opw-2449738
BACKPORT of commit: dc4f6ad
Should not be merged beyond 14.0 (14.0 excluded)
Forward-Port-Of: #71520
Forward-Port-Of: #69809