I would like to implement a website where sellers can publish their items (digital goods like 3d print designs, instructables, guides, etc.) for sale, prices are listed in DAI and payments are done using DAI, but I’d also like to allow payments starting from fiat currencies.
My ideal flow would be:
- User sees an item of interest
- User clicks on buy button
- User pays USD, which gets converted to DAI (using coinpayments, sendwyre or similar)
- DAI is sent to the seller’s wallet
- The item is sent to the user as soon as the transaction is confirmed
- Sellers can choose between cashing out or stacking their DAI
Is there a case-study or reference documentation to implement what I am trying to achieve?
I also have several questions about transactions:
- how “instant” the transaction would be? eth transactions could take several minutes to complete. In this case, how safe would it be to make the item available to the user without awaiting for the official confirmation from the eth blockchain?
- Once users obtain DAI using coinpayments or sendwyre, how would they get ETH to make transactions to the seller’s wallet? Is there any alternative design like a central contract where users send their DAI and can spend their purchased balance at most, but I can preload some ETH on it for transactions?
I am a SWE but I have no deep knowledge of web3 and blockchain, so please be patient with me
Thanks in advance!