Test the local merchant store
#
OverviewThe merchant store web UI currently supports the demonstration of the Diem payment integration scenario where a direct payment under US$1,000 is made.
#
Solutions stackThe web UI has been developed using the following tools:
#
Front-endProgramming languages | TypeScript, HTML, Sass | |
Package manager | Yarn | |
UI framework | React | |
Components and layout framework | Bootstrap | |
Testing framework | Jest | |
HTTP client | Axios |
#
Back-endProgramming languages | Python |
Package manager | pipenv |
Web framework | Flask |
Testing framework | pytest |
HTTP client | requests |
#
AssumptionsThe Diem Reference Merchant implementation makes several assumptions for simplicity:
- None of the products are real and no actual purchases are made.
- The checkout process focuses on payment and bypasses common steps such as shipping details.
- Users can “buy” products in the merchant online store without any registration or authentication.
- The merchant’s payment management UI is accessible without any authentication.
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.
This code is to be used as a reference only. Never use this code in production!
#
Test the local merchant store#
Direct payment under US$1,000Direct 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.”
Figure 1.0 List of products to purchaseThe checkout dialog window will open.
Select the desired Diem Coin currency.
The calculated price in the selected Diem Coin currency will be displayed.
Figure 1.1 Checkout pageScan 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.