Repository navigation
feat(payments): pay teams their share through Route linked accounts - #709
Draft
harshtandiya wants to merge 2 commits into
Draft
harshtandiya wants to merge 2 commits into
harshtandiya wants to merge 2 commits into
Conversation
When the platform fee is set and an event's team has an active linked account on the chosen gateway, the payment link sends the team the total less the fee, held until two days after the event in its own time zone. Otherwise checkout collects in full as before. - Buzz Settings: platform_fee_percent (0 turns payouts off, else at least 3% so the fee covers Razorpay's charges) and payout_gateway. - PayoutSplit builds the split for bookings and sponsorships alike. - Refunds need no Buzz change: bwh_payments reverses the team's share in proportion. - Moving an event's dates moves the hold on its paid transfers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XMKwzThvcD1uQmnMcgJKHt
buzz.api.payouts gets, submits and refreshes a team's linked account on the site's payout gateway, for the dashboard form that follows. Owners only, since it decides where the team's money goes, and every owner is emailed when the details change. Behind the new feature_payouts flag. Business and bank details go through to the gateway and are never stored or returned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XMKwzThvcD1uQmnMcgJKHt
harshtandiya
force-pushed
the
ccr-a418e345-z69zwo
branch
from
November 7, 2026 22:27
1c2afd8 to
1de42fc
Compare
Contributor
Backend test coverage: 93%Commit 1de42fc. Test modules are excluded. Coverage by file
109 empty files skipped. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
When BWH takes a payment for a team's event, the team's share now goes to the team's Razorpay linked account. The share is the total less the platform fee, held until two days after the event. The gateway side is bwhtech/bwh_payments#34, which must merge, and be backported to
v1-stable, first.Checkout (
buzz/payouts.py,PayoutSplit). Bookings and sponsorships both get the split. Checkout collects in full as before when:Buzz Settings
platform_fee_percent: 0 turns payouts off, so self-hosted sites are unaffected. Anything else must be at least 3%, so the fee covers Razorpay's charges.payout_gateway: the profile teams onboard on.Hold
Refunds: no Buzz change. bwh_payments reverses the team's share in proportion before refunding.
Onboarding API (
buzz.api.payouts), for the dashboard form that follows:get_payout_account,submit_payout_account,refresh_payout_account.feature_payoutsflag.Defaults to confirm:
Demo
No UI change; the dashboard form is a follow-up.
Testing
buzz.tests.test_payouts(14): the split amount, the hold and its time zone, payouts off, currency and missing-account fallbacks, rounding, half and full refund reversals, sponsorships, fee validation, holds following an event move.buzz.api.payouts.test_payouts(9): submit and refresh, requirements, Owner-only, the flag, a missing payout gateway, field-level validation errors, the Owner email.bench run-tests --app buzzran 1768 tests on a local bench, with 10 failures. None is in a module this PR touches, and each occurs ondeveloptoo in this environment:zoom_integrationis not installed in this bench.frappe.local.requestis left empty by an earlier test.test_move_payments_to_bwh_payments: this bench runs bwh_paymentsdevelop, and CI pinsv1-stable.ruff0.8.1 and Frappe's semgrep rules are clean on the changed files.🤖 Generated with Claude Code
https://claude.ai/code/session_01XMKwzThvcD1uQmnMcgJKHt