Website Alipay interface error code: TRADE_DATA_MATCH_ERROR How to deal with it?
How to deal with the website Alipay interface error code: TRADE_DATA_MATCH_ERROR? Anyone who has done Alipay payment interface should know that this is caused by repeated orders.
Today when dealing with a customer’s website, according to customer feedback, “error code: TRADE_DATA_MATCH_ERROR” appeared when the customer submitted an order through Alipay. After checking the manual of the Alipay docking platform, the customer had already generated the order on the Alipay platform. , but the payment window was closed before payment was made. When I entered the customer website member backend and clicked to pay, the above error code "TRADE_DATA_MATCH_ERROR" appeared. This means that the attributes of this order must have changed, usually the price. It happened that the backend of a shopping mall website we built for our customers supported price modification, which led to the above problem.
Solution: Re-modify the order number
No matter what your reason is, as long as "error code: TRADE_DATA_MATCH_ERROR" appears, you can modify the order number to resolve the error. We can change the order number while modifying the price in the background. For example, the following is what I changed for the customer
$newsddon=ReturnDdNo(); function ReturnDdNo(){ //Randomly generate order number $ddno=time().rand(10000,99999); return $ddno; } |
Of course, the above code is just the program I use. We only need to regenerate/modify a new order number accordingly in the file that modifies the order number price.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

