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.
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
[QL] Parse App Switch Return URL #1237
[QL] Parse App Switch Return URL #1237
Changes from 17 commits
12257fb
f5dfb31
8022cfa
f1613c6
cc1c934
b9171d8
15fb13d
bb1aca1
cdab32e
e261810
cf2d05e
41ce86f
b328d11
7ee949c
997fa30
2790f94
13f3dfd
2a1d7d7
0842e11
f33b05e
aa297db
bcbe0eb
74209fc
4521520
81e3b0b
018c55d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar comment here, we aren't using this.
This surfaces that we need to ask the analytics folks what they want us to do with this number, let's ask them! They may want us including it in an additional analytic event send
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we have some return URL parsing happening in
BTPayPalClient
and some happening inBTPayPalAppSwitchReturnURL
. Maybe for another PR, we can repurposeBTPayPalAppSwitchReturnURL
to do URL parsing for both the web flow & app switch flows.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created DTBTSDK-3751 for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious why we add the check for
universalLink
beingnil
here 👀There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, we only care about (and want to return false here for
isValidURLAction
) if thehostAndPath
is not thecallbackURLHostAndPath
and if theuniversalLink
is nil. That combination would mean that we aren't using the UL flow and thehostAndPath
is invalid we wouldn't have a valid URL action. If we are using the UL flow we can essentially skip this check since it's not relevant to that flow.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is a little confusing to read IMO. I think it will clear up in DTBTSDK-3751
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had a typo here and also are using this error for URLs outside of authentication so updated this string.