-
Notifications
You must be signed in to change notification settings - Fork 4k
Fix getting in-wallet card status on iOS #61769
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
Merged
mountiny
merged 16 commits into
Expensify:main
from
software-mansion-labs:@Skalakid/fix-getting-card-status-on-ios
May 20, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
da0ef17
Fix getting card status on iOS
Skalakid f4ca787
Update react-native-wallet library
Skalakid c247171
Update Podfile
Skalakid 869e873
Refresh a card list when the card is added to the wallet
Skalakid dccb887
Update package-lock.json
Skalakid 39aa416
Merge branch 'main' into @Skalakid/fix-getting-card-status-on-ios
Skalakid c2000f0
Merge branch '@zfurtak/introduce-wallet-to-expensify' into @Skalakid/…
Skalakid d7178f0
Improve error handling
zfurtak 8349d02
Fix iOS handleAddCardToWallet return type
Skalakid 2d31d49
Update react-native-wallet library
Skalakid 3d3061f
Merge branch 'main' into @Skalakid/fix-getting-card-status-on-ios
Skalakid 54cf6c1
Remove submodule change
Skalakid 9abd03b
Update react-native-wallet library
Skalakid a1d9286
Remove Podfile.lock changes
Skalakid 4ec36b9
Update package-lock.json
Skalakid 6a457ca
Remove useless check of wallet availability
zfurtak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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.
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.
@Skalakid is there still a need for the
expensifyCard_panReferenceIDfield here? I noticed it’s not currently used anywhere outside ofnameValuePairs. If there’s no plan to use it at the top level, should we consider removing it to keep the type clean?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.
I think we need it. In iOS's isCardInWallet wallet function, we are checking either using this value or using the card suffix. The card suffix isn't unique, there can be a situation where 2 cards have the same last 4 numbers. So, checking the state using panReferenceID is better in most situations. However, it's not always present, especially when you add the card manually threw Apple Wallet, so that why we are using the suffix listing too
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.
Great! Thanks for clarifying 🚀 🚀 🚀