Skip to content

Conversation

@sm17p
Copy link
Contributor

@sm17p sm17p commented Jan 12, 2026

Closes: #2830

Root Cause

after_transition any => %i[suspended_for_fraud suspended_for_tos_violation], :do => :suspend_sellers_other_accounts

We had a state transition setup for suspending related accounts for fraud whenever a creator was suspended for TOS violation

Solution

We now only suspend related accounts for fraud when a creator is suspended for fraud

Test Results

Screenshot 2026-01-12 at 2 27 29 PM

Checklist


AI Disclosure

No AI was used for this PR

Copy link
Contributor Author

@sm17p sm17p left a comment

Choose a reason for hiding this comment

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

Please have a look this is ready for review 🙏

after_transition any => [:flagged_for_tos_violation], :do => :add_product_comment

after_transition any => %i[suspended_for_fraud suspended_for_tos_violation], :do => :suspend_sellers_other_accounts
after_transition any => :suspended_for_fraud, :do => :suspend_sellers_other_accounts
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Going by the spec, this seems safe unless I'm missing some key information.

@sm17p sm17p marked this pull request as ready for review January 12, 2026 09:09
Copy link
Member

@nyomanjyotisa nyomanjyotisa left a comment

Choose a reason for hiding this comment

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

banned_accounts_with_same_payment_address = User.where(
payment_address: user.payment_address,
user_risk_state: ["suspended_for_tos_violation", "suspended_for_fraud"]
)

Thanks for the PR. I think we need to update this as well, to make it consistent

@sm17p
Copy link
Contributor Author

sm17p commented Jan 20, 2026

banned_accounts_with_same_payment_address = User.where(
payment_address: user.payment_address,
user_risk_state: ["suspended_for_tos_violation", "suspended_for_fraud"]
)

Thanks for the PR. I think we need to update this as well, to make it consistent

I thought about that but I was not fully sure about it.

My thought process was that if someone was suspended for TOS violation and they create/upate another account for selling, then they are clearly trying to commit a fraud?

Maybe we can ask support before we route accounts suspended for TOS violation to flag for TOS, wdyt?

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.

Bug: Suspending Account For TOS Violation Suspends Related PayPal Accounts For Fraud

2 participants