Topping Up From a Card
Fund user wallets by pulling from external payment cards via AFT with 3DS.
Before You Start
Read the following guides before proceeding:
| Guide | Why |
|---|---|
| Getting Started | Platform overview and setup |
| Api Basics | Required headers and request configuration |
| Authentication | How to obtain access tokens |
| Onboarding | User and wallet registration |
| KYC | KYC verification requirements |
| Environments | BaaS and PCI environment base URLs |
Card Top-Up lets users fund their wallet by pulling funds from an external Visa or Mastercard payment card. The debit uses AFT (Account Funding Transaction) rails and credits the user's wallet with an on-chain token. This provides a fast on-ramp for users who want to move funds from their existing bank cards into the platform.
Before initiating a top-up, the source card must be registered on Wirex's PCI-compliant secure environment. Registration returns a card_id used to reference the card in top-up requests. Card data (PAN, CVV) is never stored or transmitted outside the secure environment.
Recommended: integrate through the PCI Compliant SDK. The SDK collects the source
card inside Wirex-controlled views and returns the samecard_id, runs the 3DS step, and on mobile hosts
the Apple Pay and Google Pay checkout. Call the PCI environment directly only from a PCI DSS compliant
environment.
| Platform | SDK | Covers |
|---|---|---|
| Browser | @wirexapp/card-topup-web | Card entry, 3DS |
| React Native | @wirexapp/mobile-sdk | Card entry, 3DS, Apple Pay and Google Pay |
| Flutter | wirex_mobile_sdk | Card entry, 3DS, Apple Pay and Google Pay |
| iOS | WirexMobileSDK | Card entry, 3DS, Apple Pay |
| Android | com.wirexapp.baas:mobile-sdk | Card entry, 3DS, Google Pay |
Top-ups follow the standard estimate-then-execute flow. The estimate sizes the card debit for the token amount the user wants to receive, and execution starts the pull from the card. Because card debits are subject to Strong Customer Authentication, execution may return a 3DS state that the client must complete before the top-up settles. Transaction status is reported via activity webhooks.
Limits
Limits for topping up a wallet from a Visa card (Visa AFT).
| Transaction | 1-day limit | 7-day limit | 30-day limit | Maximum per Transaction |
|---|---|---|---|---|
| Domestic | 100,000 USD | 250,000 USD | 500,000 USD | No fixed limit |
| Cross-border | 50,000 USD | 100,000 USD | 200,000 USD | 25,000 USD |
In the Europe region, domestic limits apply to intra-EEA transactions. All retail limits are listed in
Retail Card Limits.
Integration Flow (Simplified)
Detailed documentation available in Top-Up Card Registration and Card Top-Up.
sequenceDiagram
participant User
participant App as Your App
participant PCI as Wirex PCI
participant BaaS as Wirex BaaS
Note over User,BaaS: Card Registration (one-time)
User->>App: Enter card details
App->>PCI: POST /b2b/cards/topup
PCI-->>App: card_id
Note over User,BaaS: Top-Up Execution
User->>App: Request top-up
App->>BaaS: POST /api/v1/cards/topup/estimate
BaaS-->>App: estimation_id, source/destination amounts
App-->>User: Top-up quote
User->>App: Confirm top-up
App->>BaaS: POST /api/v1/cards/topup/execute
BaaS-->>App: id, status, three_ds_state
Note over User,BaaS: 3DS
App->>User: Load three_ds_state.url
User->>PCI: Device check, then challenge if the issuer asks
Note over App,BaaS: Completion
BaaS->>App: POST /v2/webhooks/activities
App-->>User: Top-up complete
| Step | Action | Description |
|---|---|---|
| 1 | POST /b2b/cards/topup | Register card as a top-up source in PCI environment |
| 2 | POST /api/v1/cards/topup/estimate | Get top-up quote |
| 3 | POST /api/v1/cards/topup/execute | Start the top-up |
| 4 | Complete 3DS | Load three_ds_state.url — through the PCI Compliant SDK, or a browser view |
| 5 | Webhook | Receive completion notification |
Updated 8 days ago

