1. First of course, merchants through the signing, by Alipay audit through to carry out technology integration;
2. Download Alipay provided by the PHP demo, direct test merchant account, key, certificate can be used for integration, the following steps is how to change the demo to their own merchant number and private key. I remember downloading his demo can be paid after the change is successful, but is the verification of failure, back to find customer service, customer service to me a new certificate can be checked successfully. Finally understand the payment of Alipay business process, not successful to speculate that the link problem
In fact, you can follow the Alipay instructions document operation, there are problems to find customer service solutions. Https://doc.open.alipay.com/doc2/detail?treeId=60&articleId=103564&docType=1
3.demo use of RSA encryption, you need to use the command to generate the merchant's private key and public key, refer to its tutorial on the line: https://doc.open.alipay.com/doc2/detail?treeId=58&articleId=103242 &doctype=1
4. After the build need to upload a certificate, but also refer to its tutorial:
Https://doc.open.alipay.com/doc2/detail.htm?spm=0.0.0.0.140v2Y&treeId=58&articleId=103578&docType= 1
5. Then change the demo merchant's private key to the private key generated by its 3rd step:
6. Modify the partner can be tested paid
7. As long as the test payment is successful, porting to thinkphp3.2 is also easy.
In this step, you can refer to this tutorial: Http://www.thinkphp.cn/code/240.html, the demo will be transplanted into the thinkphp3.2 inside.
After working for over a year, you know that a lot of things don't think about one-step, to do the project in front of a good plan, the scheme is best through the verification of others, their own to do too time-consuming, but also need time to verify and unstable, the implementation of the time to step by step, to ensure that the previous link no problem, then proceed to the next step, Otherwise, in addition to the problem and return to step by step verification. In fact, if you can find someone else to do the demo, a change of parameters can be used, it must be very cool, but can't find, you have to do, do it first from the demo start verification, verify that there is no problem to transplant, smooth words also very quickly. Later have time to upload their own demo.
Wrote an integrated demo, modified things, in the README.MD has a brief introduction.
Download link http://download.csdn.net/detail/zhengxiaojunkite/9379301