-
Notifications
You must be signed in to change notification settings - Fork 13
Stage manteca-integration #1269
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
Merged
Changes from all commits
Commits
Show all changes
166 commits
Select commit
Hold shift + click to select a range
9b2cb33
Merge branch 'feat/manteca-integration' into feat/manteca-qr
jjramirezn 1cecd4a
Merge remote-tracking branch 'origin/peanut-wallet-dev' into feat/man…
jjramirezn 6915387
wip: manteca qr payment
jjramirezn d1ca804
setup component structure
Zishan-7 9461aae
integrate deposit API
Zishan-7 7ae1406
Complete API integration and add Brazil support (disabled)
Zishan-7 13662ab
generate share button text
Zishan-7 58f66f3
comment unused code
Zishan-7 bfe4da5
fix: build error
Zishan-7 fda8345
feat: manteca onboarding widget service
kushagrasarathe efe9139
feat: useMantecaKyc hook
kushagrasarathe 3afb9af
feat: update manteca deposit flow to handle kyc
kushagrasarathe 781501a
fix: rename useKycFlow to useBridgeKycFlow
kushagrasarathe 31e2c49
Merge branch 'feat/manteca-integration' into feat/manteca-qr
jjramirezn 1b7aad5
feat: pay mercadopago and pix QRs
jjramirezn 6866787
test: use jest-transform-stub for svg, png, jpg, jpeg, gif
jjramirezn 15527d5
Merge branch 'feat/manteca-integration' into feat/manteca-qr
jjramirezn a3e15c0
fix: add loading state to qr pay
jjramirezn 3de2c83
Merge remote-tracking branch 'origin/feat/manteca-integration' into f…
Zishan-7 21cc0f9
Remove brazil flow
Zishan-7 39742c8
fix: improve error handling in MercadoPago component
Zishan-7 de63db6
use iso2 code for flag
Zishan-7 ea8bccf
fix: update button disabled state in InputAmountStep and add type for…
Zishan-7 e3a43f4
Merge pull request #1187 from peanutprotocol/feat/manteca-add-flow
Zishan-7 19e62b4
add claim to mercado pago UI
Zishan-7 2a9f311
refactor: replace Card component with MantecaDetailsCard in MantecaDe…
Zishan-7 a333a54
Add UI for Manteca req fulfilment flow
Zishan-7 262587f
Merge branch 'peanut-wallet-dev' into feat/manteca-integration
jjramirezn 1e6f3dd
Merge branch 'feat/manteca-integration' into feat/manteca-qr
jjramirezn 4228d45
feat: handle manteca kyc completion flow
kushagrasarathe d066eb4
feat: handle geo specific kyc for manteca
kushagrasarathe 7effc01
Merge branch 'feat/manteca-add-flow' of https://github.com/peanutprot…
kushagrasarathe d7e6c0f
Merge branch 'feat/manteca-add-flow' into feat/manteca-kyc
kushagrasarathe 963b87d
feat: handle geo based user verifciation in user settings
kushagrasarathe 823ec91
fix: use useclient in mepa comp
kushagrasarathe ad7602a
Integrate request fulfilment API
Zishan-7 899e5f0
implement claim flow
Zishan-7 7e84b75
refactor: enhance MantecaDepositCard to dynamically manage row visibi…
Zishan-7 c7e8c4c
refactor: update AvatarWithBadge to use StaticImageData for logo prop…
Zishan-7 5642079
feat(qr-pay): update qr-pay page
jjramirezn b6e0026
fix: resolve coderabbit comments
kushagrasarathe d9b283d
feat(qr-pay): add max amount validation
jjramirezn 22ac554
refactor: rename U$D to USD
jjramirezn da60e40
refactor(qr-pay): rename isQRPay to isPaymentProcessorQR
jjramirezn 0cdd610
Merge branch 'peanut-wallet-dev' into feat/manteca-integration
jjramirezn 8009ee5
Merge branch 'feat/manteca-integration' into feat/manteca-qr
jjramirezn 4f53108
refactor(currency): use ifs instead of switch for exchange rate
jjramirezn 8b00772
Merge pull request #1190 from peanutprotocol/feat/manteca-qr
jjramirezn 10a4fba
fix: typo and add suggested changes
Zishan-7 7eb03c6
Merge remote-tracking branch 'origin/feat/manteca-integration' into f…
Zishan-7 af53312
feat: country row comp
kushagrasarathe eab8914
feat: handle non-bridge kyc activity ui and states
kushagrasarathe c32cd1b
feat: handle home and history page entries for kyc
kushagrasarathe b39e62a
feat: handle retry for manteca
kushagrasarathe d09105c
chore: remove test comment
kushagrasarathe 52a7b71
Merge branch 'feat/manteca-integration' into feat/manteca-kyc
kushagrasarathe 35a9a66
Merge branch 'feat/manteca-kyc' into feat/kyc-activity
kushagrasarathe d4226d4
chore: resolve cr comment
kushagrasarathe 2932f75
refactor: Update flow
Zishan-7 11ed3ec
move manteca APIs to service
Zishan-7 b71d7db
chore: add 'use client' directive to MantecaFlowManager component
Zishan-7 d6dd05f
fix: improve error handling and transaction hash validation in Mantec…
Zishan-7 4a74991
fix: typo
Zishan-7 1529829
Merge pull request #1201 from peanutprotocol/feat/manteca-claim-request
Zishan-7 81c4b14
feat: handle manteca qr-pay kyc gating
kushagrasarathe 95deb7a
Merge branch 'feat/manteca-integration' into feat/manteca-kyc
kushagrasarathe 0f90d9d
Merge pull request #1218 from peanutprotocol/feat/kyc-activity
kushagrasarathe d4267de
Merge pull request #1189 from peanutprotocol/feat/manteca-kyc
kushagrasarathe 7ad0fe0
fix: cr comments
kushagrasarathe 9e952b5
Merge pull request #1225 from peanutprotocol/feat/manteca-qr-kyc
jjramirezn 13eb2c6
feat: manteca withdraw
jjramirezn c945cb4
Merge branch 'feat/manteca-integration' into feat/manteca-withdraw
jjramirezn 5390b7b
feat: use kyc for manteca withdraw
jjramirezn 66782ab
Enable claim to bank in claim flow
Zishan-7 2d3b6e4
Enable Req fulfilment through bank using manteca
Zishan-7 73f3e23
fix: kush's leftovers
Zishan-7 d6ea557
add KYC to links flow
Zishan-7 1b621cc
refactor: review comments
jjramirezn 2cce14b
Merge pull request #1227 from peanutprotocol/feat/manteca-withdraw
jjramirezn 9f1317f
feat: guest kyc flows integration
Zishan-7 1600b4e
feat: add validation for cbu/cvu alias
jjramirezn 3aa4a8d
feat: geo-locate methods
Zishan-7 651ab67
fix: ensure fulfillUsingManteca state resets correctly based on URL step
Zishan-7 1c55ac6
fix: correct spelling of 'fulfil' to 'fulfill' in relevant components
Zishan-7 830e2cf
Merge pull request #1229 from peanutprotocol/feat/kyc-integration-links
Zishan-7 5010e07
Merge branch 'peanut-wallet-dev' into feat/manteca-integration
jjramirezn db05011
feat(manteca-withdraw): allow refund on case of withdrawal failure
jjramirezn c583bb9
Merge branch 'peanut-wallet-dev' into feat/manteca-integration
jjramirezn 1a9753d
fix: add fullName to QRPayment
jjramirezn a33a2bb
Merge branch 'feat/manteca-integration' into feat/manteca-withdraw
jjramirezn 9c6c6de
feat: enable withdraw for brazil and bolivia
jjramirezn d2ec1b0
feat: allow interoperable qr codes for argentina
jjramirezn 50af8da
Revert "feat(manteca-withdraw): allow refund on case of withdrawal fa…
jjramirezn 4912aaa
refactor: better error messaging for manteca withdraw
jjramirezn 0c3ca7c
docs: documment manteca country config
jjramirezn e32e14f
Merge pull request #1244 from peanutprotocol/feat/manteca-withdraw
jjramirezn 0a24285
fix(qr-pay): url encode qr code
jjramirezn 2908783
refactor: change currency code to ARS
jjramirezn 9539994
refactor(manteca): lowercase destination address
jjramirezn 07f2796
feat(manteca-deposit): fix manteca deposit
jjramirezn bac15ab
refactor(depossit): add razon social and cuit for argentina
jjramirezn a641e15
refactor(manteca-deposit): pr comments
jjramirezn 0bbb40f
Merge pull request #1249 from peanutprotocol/feat/manteca-deposit
jjramirezn f262b5d
fix(token-amount-input): more aesthetic
jjramirezn 71cb69d
refactor(activity): usd-first history
jjramirezn f15a3e8
fix(manteca): add min and max withdraw and deposit limits
jjramirezn 6b3c273
fix: back routes in withdraw flow
jjramirezn 8304f63
fix: remove withdraw via crypto
jjramirezn 42cb40c
feat: remember manteca methods
jjramirezn bd0a783
fix: back button on manteca withdraw
jjramirezn 4463806
fix: better implement QR3 specification
jjramirezn 497c19e
fix: add argentina qr3 regex
jjramirezn 9d790c5
fix: shorten log pix address
jjramirezn 24ce52d
fix: kyc page rerendering unnecessarily
jjramirezn 16d6298
Merge branch 'peanut-wallet-dev' into feat/manteca-integration
jjramirezn 05da7c5
fix: improve redirection after kyc verification
jjramirezn 4dfcb28
fix: add loading state for manteca kyc
jjramirezn 762f98d
Feat: Update exchange rate calculation logic
Zishan-7 022dc6b
feat: integrate Manteca API for LATAM currency exchange rates
Zishan-7 2e3a0b5
refactor: rename and separate country code map
jjramirezn 0024f54
Merge branch 'feat/manteca-integration' into feat/remember-manteca-me…
jjramirezn adc48f5
Merge pull request #1252 from peanutprotocol/feat/remember-manteca-me…
jjramirezn eb62453
fix: make stop verification button less prominent
jjramirezn 227e5c1
fix: country list improvements
jjramirezn 3a47a2b
fix: wait for the user to be updated on kyc success
jjramirezn 7d2cf63
refactor: remove manteca action not used
jjramirezn cd4e5ab
feat(manteca): add receipts to all manteca transactions
jjramirezn 914781a
fix: format numbers in payment
jjramirezn 1c3cce6
fix: comma breaking everything
jjramirezn 42240ba
feat: add sound to manteca payments
jjramirezn 500a8df
fix: receipt page padding
jjramirezn bea193a
Merge branch 'feat/manteca-integration' into feat/manteca-receipts
jjramirezn 0724b07
Merge pull request #1257 from peanutprotocol/feat/manteca-receipts
jjramirezn f9e8706
fix: history items in mangeca
jjramirezn 39df345
fix: invalidate queries on deposit details step
jjramirezn 82d6860
feat: add receipt title to receipt page
jjramirezn c86fa6c
fix: dont block when user cancels signing
jjramirezn e8f4e52
fix: better padding in receipt
jjramirezn 21430cb
fix: ask for country code when pix
jjramirezn 6222d10
fix(qr-pay): disable pay button when amount is 0 or usdAmount is 0
jjramirezn 3327a4d
fix: method icon
jjramirezn 80886ad
fix: clear redirect url after logout
jjramirezn 7927fb1
fix: stop formatting weird the saved accounts in withdraw
jjramirezn f68f0a8
remove direct API call to bridge and use `getCurrencyPrice`
Zishan-7 c489193
fix: ensure from -> usd -> to in fetchFromFrankfurter
Zishan-7 a62f747
fix: not allowed error
jjramirezn 333c745
Merge pull request #1255 from peanutprotocol/feat/add-currencies-exch…
jjramirezn a1384c0
fix: shorten long display names in history
jjramirezn fd9d282
refactor: remove alias support
jjramirezn e0f854d
Merge branch 'peanut-wallet-dev' into feat/manteca-integration
jjramirezn 354dfb9
fix: double activity header
jjramirezn e897c39
Merge branch 'peanut-wallet-dev' into feat/manteca-integration
jjramirezn b025fd7
fix: brdige kyc status
jjramirezn a4a1911
fix: router
jjramirezn 90aed23
Merge branch 'peanut-wallet-dev' into feat/manteca-integration
jjramirezn 0cab990
fix: dont cache currency prices
jjramirezn 85f0df4
refactor: show geo specific kyc modal for manteca
jjramirezn d9900a0
fix: use nullish coalescing operator for shortenStringLong
jjramirezn 37376c6
fix: truncate amounts
jjramirezn b4556e8
feat: receipt social preview
jjramirezn 653f8af
fix: store user preferences in localstorage with user id
jjramirezn 5166252
fix: dont center text in user header
jjramirezn a6685e8
fix: recent method path
jjramirezn 99ce772
Merge branch 'peanut-wallet-dev' into feat/manteca-integration
jjramirezn f36c404
fix(manteca): better inform amounts in deposit details
jjramirezn a96715a
fix: shorten long pay transaction names
jjramirezn 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
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
21 changes: 21 additions & 0 deletions
21
src/app/(mobile-ui)/add-money/[country]/[regional-method]/page.tsx
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| 'use client' | ||
| import MantecaAddMoney from '@/components/AddMoney/components/MantecaAddMoney' | ||
| import { CountryData, countryData } from '@/components/AddMoney/consts' | ||
| import { MantecaSupportedExchanges } from '@/components/AddMoney/consts' | ||
| import { useParams } from 'next/navigation' | ||
|
|
||
| export default function AddMoneyRegionalMethodPage() { | ||
| const params = useParams() | ||
| const country = params.country as string | ||
| const method = params['regional-method'] as string | ||
|
|
||
| const countryDetails: CountryData | undefined = countryData.find((c) => c.path === country) | ||
|
|
||
| if ( | ||
| MantecaSupportedExchanges[countryDetails?.id as keyof typeof MantecaSupportedExchanges] && | ||
| method === 'manteca' | ||
| ) { | ||
| return <MantecaAddMoney source="regionalMethod" /> | ||
| } | ||
| return null | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import { generateMetadata } from '@/app/metadata' | ||
| import PageContainer from '@/components/0_Bruddle/PageContainer' | ||
| import React from 'react' | ||
|
|
||
| export const metadata = generateMetadata({ | ||
| title: 'QR Payment | Peanut', | ||
| description: 'Use Peanut to pay Argentinian MercadoPago and Brazilian Pix QR codes', | ||
| }) | ||
|
|
||
| export default function QRPayLayout({ children }: { children: React.ReactNode }) { | ||
| return <PageContainer>{children}</PageContainer> | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.