Skip to content

Conversation

brunomiguelpinto
Copy link
Contributor

@brunomiguelpinto brunomiguelpinto commented Jun 26, 2025

Context

This PR ensures that cancelled Stripe payments (e.g. due to uncompleted 3DS authentication) correctly update the corresponding Lago payment status.

Previously, Lago only updated statuses on "failed" payments. As a result, "cancelled" Stripe payments remained stuck in a "pending" state on our side, making it impossible for users to retry them without manual intervention.

Description

Stripe webhook handling now includes logic for payment_intent.canceled events.
Cancelled payments are treated as "failed" in Lago (same as other unrecoverable errors).
This allows users to retry cancelled payments

@brunomiguelpinto brunomiguelpinto merged commit 595f8b8 into main Jun 26, 2025
14 checks passed
@brunomiguelpinto brunomiguelpinto deleted the feat-payment-canceled branch June 26, 2025 13:11
diegocharles pushed a commit that referenced this pull request Jun 30, 2025
## Context
This PR ensures that cancelled Stripe payments (e.g. due to uncompleted
3DS authentication) correctly update the corresponding Lago payment
status.

Previously, Lago only updated statuses on "failed" payments. As a
result, "cancelled" Stripe payments remained stuck in a "pending" state
on our side, making it impossible for users to retry them without manual
intervention.

## Description

Stripe webhook handling now includes logic for payment_intent.canceled
events.
Cancelled payments are treated as "failed" in Lago (same as other
unrecoverable errors).
This allows users to retry cancelled payments
diegocharles pushed a commit that referenced this pull request Jul 11, 2025
## Context
This PR ensures that cancelled Stripe payments (e.g. due to uncompleted
3DS authentication) correctly update the corresponding Lago payment
status.

Previously, Lago only updated statuses on "failed" payments. As a
result, "cancelled" Stripe payments remained stuck in a "pending" state
on our side, making it impossible for users to retry them without manual
intervention.

## Description

Stripe webhook handling now includes logic for payment_intent.canceled
events.
Cancelled payments are treated as "failed" in Lago (same as other
unrecoverable errors).
This allows users to retry cancelled payments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants