Regarding h5/that is, external browsers adjust WeChat payment or payment payment, simply say:

I heard from a php colleague in the company that there is almost no front-end

(1) WeChat payment: click the button on the front end ==" request interface (the interface in the background, pass the order number or something) ==" the background itself *** to request the WeChat payment interface (any parameters required by WeChat have nothing to do with the front end , leave it to the background to do it yourself) == "WeChat will return a link to the background (or a link that has been spliced ​​by the background itself: this piece is not very clear) ==" The background will return this link to the front end==" Just think of a way to trigger the front end

      This is the end, but I don't think it should be so simple, but what is certain is that most of the work is in the background. If you connect with the background, you can tell them in a hard tone and tell them what to do with the front-end. That's fine, but don't overdo it

(2) Alipay payment: click the payment button on the front end == "pass the parameters they need to the background ==" and then. . . Don't worry ==" Go to the payment platform by yourself in the background

       

 

 *** These two payments are from my php colleagues who have done this kind of external transfer payment. I haven't practiced whether it is right or wrong, but I have checked the documents for two days and feel that it is almost the same. I will have a chance in the future. Paste the source code

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325793270&siteId=291194637