Content pfp
Content
@
0 reply
0 recast
0 reaction

Tushar Soni pfp
Tushar Soni
@tusharsoni.eth
So, you're thinking of adding fiat payments to your dapp? Let's say you don't want to depend on too many third-party providers and want to build the solution in-house. Here's how you'd do it 👇
1 reply
0 recast
6 reactions

Tushar Soni pfp
Tushar Soni
@tusharsoni.eth
1. Setup a "hot" wallet that holds funds to sponsor the transactions on behalf of the user. If you are executing transactions on multiple chains, you need to have a wallet setup on every chain. Ditto for tokens - if you're contract spends a variety of tokens, your wallets need to hold balance for all of them.
1 reply
0 recast
1 reaction

Tushar Soni pfp
Tushar Soni
@tusharsoni.eth
2. Ideally, setup some sort of balance monitoring so if the wallet balance goes too low, you get notified immediately and you can replenish it. Anyways, onto the fiat part.
1 reply
0 recast
0 reaction

Tushar Soni pfp
Tushar Soni
@tusharsoni.eth
3. Find a payment processor. This can be Stripe or Apple's IAP if you're building a mobile app. To collect payment from the user, you need to calculate the dollar value of each transaction. Use a market data api like coingecko and calculate the price of your tx. Don't forget to include payment processing fees!
1 reply
0 recast
0 reaction