Add payment card#42771
Conversation
|
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@shawnborton hey! can i get a review for add payment card screen, please? It maybe some not correct margin between elements - without dev mode hard to check(picked the same as we had for other add debit card screen - 20px). I requested 10 times for dev mode in figma - lol
|
There was a problem hiding this comment.
Rather than using 68x68 here, should we use 48x48 like we do for most other simple illustrations in product? cc @dannymcclain @dubielzyk-expensify for thoughts there. This way we don't need to create a new icon size variable either.
There was a problem hiding this comment.
Yeah, we typically use 48x48 everywhere in the product these days for this type of illustration, so we might want to be consistent here as well. Let's see what the design team thinks.
There was a problem hiding this comment.
Yeah I'm aligned using 48x48 here
There was a problem hiding this comment.
Okay cool, @narefyev91 can we try the icon using our standard 48x48 size please? Thanks!
There was a problem hiding this comment.
yeah - will update
|
yes, but the scroll should be flush with the bottom of the view. |
|
The padding/spacing looks pretty good to me, but looping in @Expensify/design for some eyes too. |
@shawnborton like here Screen.Recording.2024-05-31.at.12.11.31.mov |
ohhh got what you are saying! Screen.Recording.2024-05-31.at.12.15.29.mov |
|
Exactly! |
yeah! cool fixed! Screen.Recording.2024-05-31.at.12.19.14.mov |
|
Much better, thanks! |
|
@rushatgabhane is going to review! |
Yeah - it was fixed here |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeMacOS: Chrome / SafariScreen.Recording.2024-06-04.at.22.18.29.mov |
There was a problem hiding this comment.
@narefyev91 im unable to click "I accept" checkbox
Screen.Recording.2024-06-03.at.12.45.48.mov
Yeah I faced the same issue when open dev menu in the bottom. Let me check - probably something from currency select is overlapping |
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
This reverts commit 09724ef2fd252eb2b3a6891b12f7c45b01c184e5.
| shouldShowPaymentCardForm={shouldShowPaymentCardForm} | ||
| addPaymentCard={addPaymentCard} | ||
| showCurrencyField | ||
| isDebitCard |
There was a problem hiding this comment.
| isDebitCard |
The form on this page should be the payment card, not debit card/wallet
There was a problem hiding this comment.
@amyevans are you sure?
Based on how was implemented WorkspaceOwnerPaymentCardForm - i see that it used debit card translation

|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|
|
Created follow up polish issue related to this: #44051 |
| }} | ||
| /> | ||
| <View style={[styles.containerWithSpaceBetween, styles.ph5, error === CONST.POLICY.OWNERSHIP_ERRORS.NO_BILLING_CARD ? styles.pb0 : styles.pb5]}> | ||
| <View style={[styles.containerWithSpaceBetween, error !== CONST.POLICY.OWNERSHIP_ERRORS.NO_BILLING_CARD ? styles.ph5 : styles.ph0, styles.pb0]}> |
There was a problem hiding this comment.
Removing styles.pb5 caused the issue #44825 where the Transfer Owner's 'Continue' button was missing a bottom margin.
| errors.addressStreet = label.error.addressStreet; | ||
| } | ||
|
|
||
| if (formValues.addressZipCode && !ValidationUtils.isValidZipCode(formValues.addressZipCode)) { |
There was a problem hiding this comment.
This validation logic caused the following issue:
since it was only passing US format Zip Codes. We fixed the issue by removing the validation entirely.










Details
Implement “Add payment card” screen (UI)
Generally build new component for rendering any kind of Adding payment card form.
Replaced form for Wallet debit card, Owner workspace debit card and Add payment card for subscription
Fixed Issues
$ #38634
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop