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

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),