Skip to content

[Testing] Add Alfredpay ARS support#1141

Open
gianfra-t wants to merge 125 commits into
stagingfrom
add-alfredpay-ars-support
Open

[Testing] Add Alfredpay ARS support#1141
gianfra-t wants to merge 125 commits into
stagingfrom
add-alfredpay-ars-support

Conversation

@gianfra-t
Copy link
Copy Markdown
Contributor

No description provided.

ebma and others added 30 commits April 16, 2025 17:30
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
@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 7e9a419
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6a19d9e512d45e000848f01f
😎 Deploy Preview https://deploy-preview-1141--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 7e9a419
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6a19d9e5cb6e530007077c57
😎 Deploy Preview https://deploy-preview-1141--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gianfra-t gianfra-t changed the title [WIP] Add Alfredpay ARS support [Testing] Add Alfredpay ARS support May 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/shared/src/tokens/freeTokens/config.ts Outdated
Comment thread apps/frontend/src/machines/alfredpayKyc.machine.ts
Comment thread apps/frontend/src/components/Alfredpay/MxnDocumentUploadScreen.tsx Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants