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?

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?

PHP中文网
PHP中文网Original
2017-03-30 09:25:393021browse

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)!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn