[PM-33301] Add Functionality for Upgrading Using PayPal#7183
[PM-33301] Add Functionality for Upgrading Using PayPal#7183sbrown-livefront wants to merge 21 commits intomainfrom
Conversation
|
New Issues (2)Checkmarx found the following issues in this Pull Request
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7183 +/- ##
==========================================
- Coverage 57.64% 57.64% -0.01%
==========================================
Files 2033 2033
Lines 89597 89602 +5
Branches 7974 7982 +8
==========================================
+ Hits 51650 51651 +1
- Misses 36092 36094 +2
- Partials 1855 1857 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Claude finished @sbrown-livefront's task in 3m 13s —— View job Overall Assessment: APPROVE Reviewed the addition of PayPal/Braintree payment support for premium-to-organization upgrades, a payment method pre-check before subscription modification, and the refactoring of the command into smaller focused methods. The Code Review DetailsNo findings. All previously identified critical issues (wrong subscriber type for Braintree, matching test assertion) have been addressed. The PayPal flow follows established patterns from |
src/Core/Billing/Premium/Commands/UpgradePremiumToOrganizationCommand.cs
Outdated
Show resolved
Hide resolved
test/Core.Test/Billing/Premium/Commands/UpgradePremiumToOrganizationCommandTests.cs
Show resolved
Hide resolved
src/Core/Billing/Premium/Commands/UpgradePremiumToOrganizationCommand.cs
Outdated
Show resolved
Hide resolved
src/Core/Billing/Premium/Commands/UpgradePremiumToOrganizationCommand.cs
Outdated
Show resolved
Hide resolved
src/Core/Billing/Premium/Commands/UpgradePremiumToOrganizationCommand.cs
Show resolved
Hide resolved
src/Core/Billing/Premium/Commands/UpgradePremiumToOrganizationCommand.cs
Show resolved
Hide resolved
src/Core/Billing/Premium/Commands/UpgradePremiumToOrganizationCommand.cs
Show resolved
Hide resolved
|
| }, | ||
| TaxExempt = TaxHelpers.DetermineTaxExemptStatus(billingAddress.Country) | ||
| }); | ||
| PaymentBehavior = requiresIncomplete ? PaymentBehavior.DefaultIncomplete : null |
There was a problem hiding this comment.
@amorask-bitwarden I had to change this to accommodate changes from PayPal to bank accounts when updating. Is this the correct payment behavior for bank accounts waiting to be verified? I have a video of this change on the description





🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-33301
📔 Objective
This PR adds required functionality to be able to use Paypal as a payment method for upgrading.
It also pull out some of the upgrade command functionality into helper methods to improve readability of the main function.
📸 Screenshots
Upgrading with Existing PayPal Payment Method
Screen.Recording.2026-03-09.at.12.44.23.PM.mov
Upgrading with New Payment Method Changing from PayPal
Screen.Recording.2026-03-09.at.12.48.45.PM.mov
Upgrading with Bank Account Changing from PayPal
Screen.Recording.2026-03-19.at.4.10.42.PM.mov