Skip to content

Add unhandled payment alert worker#665

Merged
ebma merged 3 commits into
stagingfrom
unhandled-payment-worker
May 30, 2025
Merged

Add unhandled payment alert worker#665
ebma merged 3 commits into
stagingfrom
unhandled-payment-worker

Conversation

@gianfra-t
Copy link
Copy Markdown
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.

@netlify
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, let's give it a shot 👍

Copy link
Copy Markdown
Member

@Sharqiewicz Sharqiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@ebma ebma merged commit 7dc2a35 into staging May 30, 2025
5 checks passed
@ebma ebma deleted the unhandled-payment-worker branch May 30, 2025 08:02
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.

3 participants