feat: unified view for saved and more payment methods screen #1194
+244
−82
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.
Type of Change
Description
#1193
Added a parameter inside
layout
object, named asmergeSavedMethods
, it is an object having structure asbased upon which if there are saved payment methods and
isMergedSavedMethodsList
is passed as true then instead of coming on a separate saved payment methods screen, it will come in either tabs flow or accordion flow depending upon the layout.maxSavedItems
is used to configure how many saved methods we want to show initially and then the rest can be shown after clicking on show more.Screen.Recording.2025-08-26.at.4.47.04.PM.mov
How did you test it?
Tested the following cases for both Accordion view and Tabs View :-
When saved payment methods are present
displaySavedPaymentMethods
isfalse
,isMergedSavedMethodsList
isfalse
ortrue
No saved payment methods tabdisplaySavedPaymentMethods
istrue
,isMergedSavedMethodsList
isfalse
Normal flow Saved payment methods screendisplaySavedPaymentMethods
istrue
,isMergedSavedMethodsList
istrue
Saved payment methods in tabs or accordionWhen No saved payment methods are present
each case will have no saved payment methods
Checklist
npm run re:build