Home >Backend Development >PHP Tutorial >In the test, it was found that the transaction_id received in the WeChat payment completion notification may be the same. What is the reason?
The transaction_id received in the WeChat payment completion notification was tested and found to be possibly the same. What is the reason?
1: There are 8 official notifications. The notification will end only if you output success in advance. Transaction_id does not want to be repeated at all. If it is generated, there must be certain generation rules and troubleshooting rules to avoid duplication. If the out_trade_no in the xml you receive is different, then it means there is something wrong with Tencent. If out_trade_no is the same, it means that you received the callback notification of the same payment order
2: Look at the transaction_id format: 1009660380201506130728806387. It seems that the middle one is 201506130728, which is the time. The following 806387 may be a microsecond value, or it may be random. No matter what the number is, there is a very small chance that it will be the same
The above is the transaction_id received in the WeChat payment completion notification. During the test, it was found that it may be the same. What is the reason? Content, for more related content, please pay attention to the PHP Chinese website (www.php.cn)!