Skip to content

PM-5564 - Handle business verification event#192

Merged
vas3a merged 1 commit into
devfrom
PM-5564_business-verification
Jul 7, 2026
Merged

PM-5564 - Handle business verification event#192
vas3a merged 1 commit into
devfrom
PM-5564_business-verification

Conversation

@vas3a

@vas3a vas3a commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

https://topcoder.atlassian.net/browse/PM-5564 Wallet app: Members with Business accounts cannot withdraw payments because ID verification remains in "Setup Required" status.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the Trolley recipient verification webhook handling so that business-account verification status updates are processed (in addition to individual), addressing cases where business members remain stuck in “Setup Required” and cannot withdraw.

Changes:

  • Added business as a supported RecipientVerificationType.
  • Updated the status update handler to accept both individual and business verification types (and ignore others).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/api/webhooks/trolley/handlers/recipient-verification.types.ts Adds business to the verification type enum so incoming webhook payloads can be typed/recognized.
src/api/webhooks/trolley/handlers/recipient-verification.handler.ts Processes business status updates the same way as individual updates (updates IDV association and reconciles payments).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 36 to 38
this.logger.log(
`Handling only individual status updates, ignoring phone verification for recipient ${payload.recipientId}. Verification type: ${payload.type}.`,
`Handling only individual/business status updates, ignoring phone verification for recipient ${payload.recipientId}. Verification type: ${payload.type}.`,
);
@vas3a
vas3a merged commit f565e29 into dev Jul 7, 2026
5 of 6 checks passed
@vas3a
vas3a deleted the PM-5564_business-verification branch July 7, 2026 12: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.

2 participants