Skip to content

Conversation

ivannovosad
Copy link
Contributor

Context

Performing a refund fails when payment provider customer is discarded.
A refund is performed only on the PSP - the API is called and it succeeds, but it fails to create the refund record in Lago DB.

Description

This PR fixes the issue by adding a method that fetches the payment provider customer even if it's discarded.

Customers::PaymentProviderFinder#payment_provider_customer

@ivannovosad ivannovosad merged commit 307d0e7 into main Jul 7, 2025
14 checks passed
@ivannovosad ivannovosad deleted the fix-refunds branch July 7, 2025 13:53
diegocharles pushed a commit that referenced this pull request Jul 11, 2025
…#3936)

## Context

Performing a refund fails when payment provider customer is discarded.
A refund is performed only on the PSP - the API is called and it
succeeds, but it fails to create the refund record in Lago DB.

## Description

This PR fixes the issue by adding a method that fetches the payment
provider customer even if it's discarded.

`Customers::PaymentProviderFinder#payment_provider_customer`
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