Summary

So, we finally finished building our payment gateway and ecosystem. I really hope this project gives you insight into how blockchain apps work on the Ethereum mainnet with each other leveraging the shared ledger, especially in a financial scenario.

This ecosystem can easily be used in an enterprise environment as well. Replace ether with any ERC20-based asset token you need to work with, such as fiat currency, land, or commodities. You might also consider running this on Ropsten or a larger Ethereum test network after you build it on Ganache and compare it with how exchanges such as Coinbase or Binance or payment gateway services such as Bitpay or Coingate work.

We started this chapter by looking at what a payment ecosystem in a blockchain looks like and its components. We discussed HD wallets and block confirmations in blockchain payments. Then, we leveraged our knowledge to build an e-commerce portal with a payment gateway, a merchant HD wallet service with an API to generate dynamic addresses, and a merchant wallet interface for tracking transactions to this wallet. Then, we ran our entire ecosystem end-to-end using both MetaMask and the Truffle console command line as our wallets for making a payment and tracked it on the merchant's wallet

The main takeaway from this chapter is understanding how an ecosystem like this is built and how the components interact with each other, leveraging the blockchain. It also gives you insight into how payment systems are changing. With this particular system, the merchant directly receives payment to a wallet owned and maintained by themself minus a middleman. Hence, the merchant can avoid paying payment or operation fees to a third party.

In the next chapters, we'll see how we can use Hyperledger Fabric to build complex payment and remittance workflows for corporates and enterprises.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.31.209