Loading…

How to implement: Help users place orders and share them with users for direct payment

# Page structure There need to be two elements on the page. The first one is to select the product (and specifications); the second one is to have a place to choose to fill in the address, which can help the user fill in the delivery address. The following renderings: ![](https://dcdn.it120.cc/yuque/0/2022/png/572726/1657536665673-df3f04a8-aeff-4356-b6d5-1aa5d2c6ddb7.png) # Save data [https://www.yuque.com/apifm/nu0f75/ou3gxn](https://www.yuque.com/apifm/nu0f75/ou3gxn) Use temporary data storage interface as data storage and transfer Save the above product information, delivery address information, and filler (sales) information as a Json data to a random key For example, this key is: **1234567890** # Share with users You can share/forward (pass the above key as a parameter), or produce a QR code (write the key into the QR code) and send it to the user. # Logic after user clicks/scans code After the user clicks on the link/scans the code, he can get the key, and then through the above interface, read the product information saved in the key, fill in the person (sales) information, and delivery address information, and then call the order interface to complete the order without any sense, and then directly initiate the payment.