[Testing] Add Alfredpay ARS support#1141
Open
gianfra-t wants to merge 125 commits into
Open
Conversation
Create new production release
Create new production release
Create new production release.
Create new production release
Create new production release.
Create new production release
Create new production release
Create new production release
Create a new Production Release
Create new production release
Create new production release
Use the correct parameter for production deployment
Create new production release
Create new production release
Create new production release
Create a new production release
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
Fix bug in nabla-approve-handler.ts
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
Create new production release
✅ Deploy Preview for vortex-sandbox ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for vortexfi ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Argentina (ARS) support to the Alfredpay ramp flow across shared config, backend quote/transaction preparation, and frontend KYC + UI, shifting ARS away from the Stellar anchor config into Alfredpay “fiat” handling.
Changes:
- Move ARS support to Alfredpay fiat configuration (limits + token config) and wire ARS → AR country mapping for onramp/offramp.
- Extend Alfredpay KYC to support Argentina-specific fields and selfie upload, and add AR onramp summary details + COELSA fiat account method.
- Add backend validation for AR KYC payloads and make Alfredpay customer/KYC/KYB submission calls more idempotent by handling “already exists / cannot retry” responses.
Reviewed changes
Copilot reviewed 31 out of 32 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/shared/src/tokens/stellar/config.ts | Removes Stellar anchor-based ARS token config entry. |
| packages/shared/src/tokens/freeTokens/config.ts | Adds ARS fiat token config and Alfredpay limits table for ARS. |
| packages/shared/src/services/alfredpay/types.ts | Adds ARS to Alfredpay token set; extends KYC request fields and file types (selfie); adds Argentina doc type enum. |
| packages/shared/src/services/alfredpay/alfredpayApiService.ts | Updates KYC submission shaping and changes KYC file upload form field name. |
| apps/frontend/src/translations/pt.json | Adds AR KYC/doc upload and COELSA strings; adds missing colKycForm.continue; adds ARS onramp summary copy. |
| apps/frontend/src/translations/en.json | Same as above for English. |
| apps/frontend/src/machines/kyc.states.ts | Generalizes Alfredpay form data typing for KYC context. |
| apps/frontend/src/machines/alfredpayKyc.machine.ts | Adds AR handling, selfie upload support, and adjusts retry/transition guards. |
| apps/frontend/src/constants/fiatAccountMethods.ts | Adds Argentina (AR) country config and COELSA fiat account type mapping/labels. |
| apps/frontend/src/constants/fiatAccountForms.ts | Adds COELSA account form schema (CBU/CVU/Alias). |
| apps/frontend/src/components/widget-steps/SummaryStep/TransactionTokensDisplay.tsx | Shows ARS onramp details component on BUY + ARS. |
| apps/frontend/src/components/widget-steps/SummaryStep/ARSOnrampDetails.tsx | New ARS-specific onramp payment details UI. |
| apps/frontend/src/components/TokenSelection/TokenSelectionList/helpers.tsx | Simplifies fiat token listing by removing EURC-only filter logic. |
| apps/frontend/src/components/Alfredpay/MxnKycFormScreen.tsx | Refactors MXN KYC form to the new generic KycFormScreen. |
| apps/frontend/src/components/Alfredpay/MxnDocumentUploadScreen.tsx | Adds optional selfie upload support. |
| apps/frontend/src/components/Alfredpay/KycFormScreen.tsx | New reusable KYC form renderer driven by config + Zod schema. |
| apps/frontend/src/components/Alfredpay/ColKycFormScreen.tsx | Refactors CO KYC form onto KycFormScreen with custom fields. |
| apps/frontend/src/components/Alfredpay/ArKycFormScreen.tsx | New Argentina KYC form (CUIT/PEP/phone/document type). |
| apps/frontend/src/components/Alfredpay/AlfredpayKycFlow.tsx | Routes AR users to AR KYC form and selfie-enabled document upload. |
| apps/api/src/api/services/transactions/onramp/routes/alfredpay-to-evm.ts | Maps ARS to AlfredPayCountry.AR for onramps. |
| apps/api/src/api/services/transactions/offramp/routes/evm-to-alfredpay.ts | Maps ARS to AlfredPayCountry.AR for offramps. |
| apps/api/src/api/services/ramp/ramp.service.ts | Limits “start expiration” cancellation to Stellar ramps only. |
| apps/api/src/api/services/quote/routes/route-resolver.ts | Routes cbu payment method to EVM→Alfredpay offramp strategy. |
| apps/api/src/api/services/quote/engines/initialize/offramp-from-evm-alfredpay.ts | Minor formatting cleanup. |
| apps/api/src/api/services/quote/engines/finalize/onramp.ts | Treats ARS like other Alfredpay fiats for finalize logic. |
| apps/api/src/api/services/quote/core/helpers.ts | Adds CBU as a supported payment method. |
| apps/api/src/api/services/priceFeed.service.ts | Updates comment to include ARS as fiat-without-pool. |
| apps/api/src/api/services/phases/handlers/brla-onramp-mint-handler.ts | Formatting-only changes. |
| apps/api/src/api/routes/v1/alfredpay.route.ts | Adds KYC submission validator middleware. |
| apps/api/src/api/middlewares/validators.ts | Adds AR-specific KYC submission validation middleware. |
| apps/api/src/api/controllers/alfredpay.controller.ts | Improves idempotency for customer creation and (KYC/KYB) submission retries; adds COELSA fiat account fields mapping. |
| .clinerules/01-general-rules.md | Minor whitespace change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.