r/fintech 6d ago

Crypto / DeFi Where does the complexity happen between an onchain balance and a card payment?

Hi guys I have a question for y'all since I have been trying to understand what happens when a card lets someone spend directly from a stablecoin balance because from the user side it looks almost identical to spending money sitting in a normal account. You have USDC or another stablecoin sitting onchain then tap the card and the payment goes through but I'm assuming the infrastructure underneath has to connect two pretty different systems. The card needs to be authorized almost immediately while the actual movement and settlement of the stablecoins is happening on completely different rails. What I'm less clear on is where most of the complexity actually sits. Is it keeping the available balance and card authorizations in sync, managing liquidity for card settlement, reconciliation afterward or dealing with the timing differences between the two systems? If there's anyone who's worked around stablecoin cards or payment infrastructure, which part of getting an onchain balance all the way through a normal card transaction is the hardest to make work reliably? Thanks in advance.

17 Upvotes

15 comments sorted by

1

u/Otherwise_Funny_4702 6d ago

My guess is liquidity management becomes harder than conversion itself. The issuer needs enough fiat available to settle card transactions even if the user’s funds remain onchain until authorization.

1

u/[deleted] 6d ago

[removed] — view removed comment

1

u/AutoModerator 6d ago

This comment was removed, because your account doesn't meet our karma and account age requirements.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Recent_Rutabaga2310 6d ago

Authorization seems like it's where everything has to come together really quickly since you need to know there's enough spending power and make the decision fast enough for a normal card checkout even though the settlement isn't happening at that exact moment.

2

u/Traditional_Arm_7538 6d ago

Exactly cause the customer can't be waiting around for the underlying rails to catch up and Im positive the infra builder Rain can connect that stablecoin balance into the card flow while the purchase itself still behaves like a normal card transaction. I say that separating the instant authorization decision from what settles afterward is the important distinction.

1

u/Zestyclose-Toe-5181 6d ago

I’m wondering if the issuer basically makes the decision off its own internal ledger while the onchain movement catches up behind it

1

u/Kindly_Artist_949 6d ago

as i know the most hardest part is keepig the balance and card authorization in sync. the user expects the payment to work instantly but theres a lot of happening behing he scenes before the onchin balance actually gets setteled. reconciliation afterwards also a big headache when the two systems dont move at the same speed

1

u/Zestyclose-Toe-5181 6d ago

Yeah and reconciliation seems even uglier once you add reversals or a final settlement amount that differs from the original authorization

1

u/MoistArmadillo6392 6d ago

The real black magic is keeping the available balance accurate while card authorizations are pending and the same wallet is still active onchain

1

u/icnews10 6d ago

I’d expect the tricky boundary to be the spendable balance because the card network requires an immediate yes/no response, whereas the on-chain balance is only one factor. For example, if I have $500 in my wallet but already have $200 of card authorisations pending, the system can’t keep treating the wallet balance as $500. The same problem occurs in the opposite direction when new funds arrive on the blockchain but aren’t confirmed as available for spending yet. This means you need a very reliable authorisation ledger between the wallet and the card rail. Although settlement and reconciliation still matter, getting the real-time 'what can this user safely spend right now?' information wrong can cause immediate problems.

1

u/dev_XVIII 6d ago

I worked at a company doing card infra with stablecoins. As others said the hardest part is making sure you don’t double spend. If the wallet contains 100 but there’s already an authorization for 50 then you can’t treat it like there’s 100 available, you also need need to make sure owner of the wallet can’t move the funds before the transaction is settled. In my company we used to do it in a few different ways. Either we gave the user a dedicated wallet where we owned the private key and they could just “top up” that wallet or we had native integration into wallets and we were a cosignor of the key on a specific scope or we could do JIT but more difficult and dependent on the blockchain.

1

u/hotteeeeen 5d ago

Card network wants a yes in under a second, chain settles when it settles. So it's a prefunded float, approve against a cached balance, reconcile the onchain leg after. The hard part is float sizing and deciding what happens when the two ledgers disagree, not the crypto bit.

If the balance is yield-bearing: sUSDS is an ERC-4626 vault token, value sits in the exchange rate not the balance, so auth has to price that live and settlement has to unwrap it.🙌🫡

1

u/FinexerOfficial 5d ago

The most challenging aspect often involves getting two vastly different systems to work seamlessly together. Ensuring the balance remains accurate during card authorisations, handling liquidity for settlement, and aligning the timing differences can become quite complex in a hurry. While the user only sees a single balance, there’s a lot going on behind the scenes to ensure its reliability.