Implement Cashout/Topups/Transfers#621
Conversation
…etails screen navigation logic
… the CashoutConfirmation screen accordingly
…ated and update CashoutWithdrawTo component to use BankAccounts query to show user default bank account
…o/One users press the top up or cashout button navigates to account upgrade level
| email: string | ||
| kycType: string | ||
| }) => { | ||
| toggleActivityIndicator(true) |
There was a problem hiding this comment.
Also guard the modal submit path before calling bridgeInitiateKyc.
| toggleActivityIndicator(true) | |
| if (currentLevel === AccountLevel.Zero) { | |
| Alert.alert("Account upgrade required", "You should upgrade your account to use this feature") | |
| return | |
| } | |
| toggleActivityIndicator(true) |
There was a problem hiding this comment.
This screen is only accessible to Level 1+ users, so there’s no need to guard the modal for Level 0 users.
| ) | ||
|
|
||
| const checkAccountLevel = (type: "card" | "bankTransfer" | "cashout") => { | ||
| if (currentLevel === AccountLevel.Zero || currentLevel === AccountLevel.One) { |
There was a problem hiding this comment.
Card top-up should allow Level 1 users.
| if (currentLevel === AccountLevel.Zero || currentLevel === AccountLevel.One) { | |
| if (currentLevel === AccountLevel.Zero) { |
There was a problem hiding this comment.
This logic is incorrect. It will break the JMD cashout flow and JMD bank top-up flow.
Card top-up already available for Level 1 users. What you wanted to do here?
There was a problem hiding this comment.
I was getting the "level 2 required" error, because level zero and level one were not allowed
| } | ||
|
|
||
| const checkBridgeKyc = (type: "topup" | "settle") => { | ||
| if (kycStatusData?.bridgeKycStatus === "pending") { |
There was a problem hiding this comment.
International transfer should require Level 1+ before checking Bridge KYC status.
| if (kycStatusData?.bridgeKycStatus === "pending") { | |
| if (currentLevel === AccountLevel.Zero) { | |
| Alert.alert("Account upgrade required", "You should upgrade your account to use this feature") | |
| } else if (kycStatusData?.bridgeKycStatus === "pending") { |
There was a problem hiding this comment.
This screen is only accessible to Level 1+ users, so there’s no need to check for Level 0 users.
…st otherwise fallback to usd wallet
* Add International upgrade option * fix: open bridge kyc modal from account type * clean up and open bridge kyc modal on the account upgrade type screen * clean up * Hide the international/bridge upgrade button when KYC is approved and Show orange border on the international card when KYC is pending * hide the international kyc button if user level zero --------- Co-authored-by: Vandana <forge@getflash.io> Co-authored-by: nodirbek75 <nodirbek7077@gmail.com>
No description provided.