developers.diem.com/docs/wallets-and-merchant-stores/diem-reference-merchant-store/local-web-reference-merchant.md
The merchant store web UI currently supports the demonstration of the Diem payment integration scenario where a direct payment under US$1,000 is made.
The web UI has been developed using the following tools:
| | | |---- | ---- | ----| | Programming languages | TypeScript, HTML, Sass | | Package manager | Yarn | | UI framework | React | | Components and layout framework | Bootstrap | | Testing framework | Jest | | HTTP client | Axios |
| Programming languages | Python |
| Package manager | pipenv |
| Web framework | Flask |
| Testing framework | pytest |
| HTTP client | requests |
The Diem Reference Merchant implementation makes several assumptions for simplicity:
The main purpose of this implementation is to demonstrate common use cases when working with Diem Coin currencies, and to show directions for further development. To make the important concepts more clear for the readers, the implementation is deliberately simplified and avoids some of the complexities of real world, production-grade financial software.
<BlockQuote type="danger"> This code is to be used as a reference only. Never use this code in production! </BlockQuote>Direct payments under US$1,000 do not require any special AML procedures and are processed immediately.
Open the merchant store.
Choose a product under US$1,000 and click “Buy now.” <small className="figure">Figure 1.0 List of products to purchase</small>
The checkout dialog window will open.
Select the desired Diem Coin currency.
The calculated price in the selected Diem Coin currency will be displayed. <small className="figure">Figure 1.1 Checkout page</small>
Scan the QR code or copy the deep-link into a Diem wallet of your choice.
Complete the payment in the wallet.
The checkout dialog will confirm payment success.
Notice the payment ID link at the bottom of the dialog. It can be used to access the payment management page.
<ThankFirst/>