Best way to generate order numbers for an online store?

前端 未结 13 2074
野的像风
野的像风 2021-01-31 00:09

Every order in my online store has a user-facing order number. I\'m wondering the best way to generate them. Criteria include:

  • Short
  • Easy to say over the
13条回答
  •  面向向阳花
    2021-01-31 00:21

    Rather than generating and storing a number, you might try creating an encrypted version that would not reveal the number of orders in the system. Here's an article on exactly that.

提交回复
热议问题