Skip to content

Add unhandled payment alert worker #665

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

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from

Conversation

gianfra-t
Copy link
Contributor

@gianfra-t gianfra-t commented May 22, 2025

About

Adds a worker that fetches ramp entries with status failed and initial, using a predefined time window.

For each ramp, the worker checks:

  • If there was a payment with a reference label corresponding to the entry. This should not be the case and should be alerted.
  • Checks if there is a duplicate reference label on the list of payments from the BRLA account corresponding to the entry. Rationale is that this may be the cause of a failed or invalid state.
  • If there is a payment with an invalid label (no label, wrong length, etc).

The worker will not alert more than once per day for eachsubaccountId. If from a particular ramp state we detect multiple inconsistencies, then all will be triggered.

Copy link

netlify bot commented May 22, 2025

Deploy Preview for pendulum-pay canceled.

Name Link
🔨 Latest commit 0cfbad3
🔍 Latest deploy log https://app.netlify.com/projects/pendulum-pay/deploys/6830963d69ba17000864e46a

@gianfra-t gianfra-t changed the title add alert worker Add unhandled payment alert worker May 22, 2025
@gianfra-t gianfra-t requested a review from a team May 23, 2025 15:50
@gianfra-t gianfra-t marked this pull request as ready for review May 23, 2025 15:50
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.

1 participant