In-dapp Payments on Flow
User payments are an important part of many blockchain dapps. In order to create a stellar user experience, your dapp should make it as easy as possible for users to purchase digital assets. For most users, this means being able to pay for digital assets (e.g. NFTs) using their local fiat currency (e.g. via credit card).
Direct vs Peer-to-peer Sales
Before diving into payments, it is important to define the difference between direct sales and peer-to-peer sales.
- Direct sales: users purchase digital assets (e.g. NFTs) directly from a dapp developer.
- Peer-to-peer sales: users purchase digital assets (e.g. NFTs) from other dapp users, usually via a marketplace.
This section will highlight the considerations you should make when implementing payments for direct sales and peer-to-peer sales.
Available Payment Options
FLOW is the default cryptocurrency that powers the Flow blockchain network, and is primarily used for staking and for paying network fees.
Many of the payment providers support FLOW, including well-trusted cryptocurrency exchanges.
However, FLOW isn’t always well-suited for day-to-day user payments due to its price volatility, much like any cryptocurrency.
Dapp Custody Gotcha: custodial dapps that allow their users to hold FLOW will need to comply with any necessary regulations regarding cryptocurrency asset custody. Consult your legal counsel.
Direct Credit Card Payments
Some dapps choose to directly integrate off-chain credit card providers such as Alipay, Circle, PayPal or Stripe in order to support NFT sales. In these scenarios, payments are processed externally by the provider, and then the NFT asset is delivered in a transaction authorized by the dapp developer.
While direct credit card payments result in a good user experience, they bring significant challenges for the dapp developer. Credit card payments are prone to chargebacks and fraud, meaning users can purchase an asset, dispute the credit card transaction, and then keep the original asset without paying. Because of this, dapp developers sometimes opt for the dapp custody model when supporting direct credit card payments.
Credit card payments introduce additional challenges when used in peer-to-peer payment platforms such as an NFT marketplace. When a user buys an NFT from another user using their credit card, the payment is still processed by the dapp developer, which makes the developer responsible for paying the seller. To pay the proceeds to the seller, the developer must comply with necessary regulations. Consult your legal counsel.
FUSD and FLOW are the recommended payment methods for FCL-powered dapps, due to their ease of integration, stability and widespread ecosystem support.