-
Notifications
You must be signed in to change notification settings - Fork 10.4k
fix(payment): only send payment email to booking user in seated events #22558
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
fix(payment): only send payment email to booking user in seated events #22558
Conversation
Fixes calcom#22524. Prevents previously booked users from receiving duplicate payment emails.
WalkthroughThe implementation of the Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes were found. Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
packages/app-store/stripepayment/lib/PaymentService.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-playwright". (The package "eslint-plugin-playwright" was not found when loaded as a Node module from the directory "".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-playwright" was referenced from the config file in ".eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (2)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@DarshanKumarA is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (07/16/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (07/16/25)1 label was added to this PR based on Keith Williams's automation. |
This PR is being marked as stale due to inactivity. |
Hi @DarshanKumarA, Thanks for the pr. Could you pls add a loom video showing your fix? |
Yes I'm on it, will share the video by noon |
@DarshanKumarA Could you pls share a loom video of your fix? |
This PR is being marked as stale due to inactivity. |
E2E results are ready! |
Fixes #22524 – Prevents duplicate payment emails to all users and only send payment email to booking user in seated events
What does this PR do?
This PR ensures that payment-related emails for seated events are only sent to the newly booked participant, instead of all previous attendees. This solves the issue where users who had already paid were receiving duplicate and unnecessary payment reminders.
Why no toggle was added?
The original issue mentioned adding a toggle to disable group-wide emails:
That toggle was likely suggested as a workaround. However, since this PR completely prevents the incorrect behavior by default, such a toggle is no longer needed.
In fact, adding a toggle now would reintroduce broken behavior. Sending payment emails to all attendees is confusing and incorrect, and should not be an optional behavior.
Visual Demo
Before:
After (with this PR):
(Screenshots or recording can be added here)
Checklist
🧪 How to test this