feat(payment): PAYPAL-6433 implement server side shipping callbacks logic#3236
Merged
Conversation
9a15f0a to
5501017
Compare
5501017 to
17a1522
Compare
17a1522 to
b515d53
Compare
b515d53 to
76f8e8e
Compare
76f8e8e to
b3dad2a
Compare
b3dad2a to
66dcc1e
Compare
4529853 to
f85df12
Compare
f85df12 to
8eb49bd
Compare
8eb49bd to
19c3f08
Compare
serhiiFilkovskyi
approved these changes
May 15, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1c82d79. Configure here.
1c82d79 to
898afea
Compare
bc-nick
reviewed
May 18, 2026
898afea to
c19f5af
Compare
bc-nick
approved these changes
May 18, 2026
c19f5af to
7a1b388
Compare
7a1b388 to
a0d33df
Compare
a0d33df to
036498d
Compare
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/Why?
Implemented server side shipping callbacks logic
Rollout/Rollback
Revert PR
Testing
Unit tests
Note
Medium Risk
Changes PayPal hosted-checkout approval and
updateOrderbehavior around shipping data, which can affect address/shipping selection and order submission for physical carts. Also removes AppSwitch resume/appSwitchWhenAvailable handling, so regressions could impact mobile/app-return flows.Overview
Implements a new
isServerSideShippingCallbacksEnabledinitialization flag across PayPal Commerce (PayPal + Credit/PayLater) strategies and shared utils to toggle client vs server handling of shipping callbacks.When enabled, PayPal button configs omit
onShippingAddressChange/onShippingOptionsChange, approval flows avoid pullingactions.order.get()for addresses,updateOrdersends no shipping options ([]) andselectedShippingOption: null, and checkout is reloaded before order submission for physical-item carts.Separately, AppSwitch support is removed from these PayPal strategies/utilities (no
appSwitchWhenAvailable,hasReturned()/resume()paths), with unit tests updated to reflect the new flag-driven behavior.Reviewed by Cursor Bugbot for commit 036498d. Bugbot is set up for automated code reviews on this repo. Configure here.