In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how the java docking Alipay payment interface development is, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.
The first step
(first, we have to do it on Alipay, and then move the code after getting the information we need to develop.)
When we enter Ant Financial Services Group, we need to create an app first. see the application button in the picture?
Click apply (as shown below)
Create an application (create an application that requires auditing) and provide data review, so we don't have to worry about it at this time. It can be used as soon as it is approved.
But we can't be idle when he examines us. Let's get a test and write the code. After the audit ditch is passed, we can replace the information after the audit.
Step two
(use sandboxed environment for development)
Do you see APPID? this is very important. We need to use it when we pay, and it will also be found in the information after the current audit. This sandbox is for us to test, and it is almost the same as the official one, just switching between different APPID and Alipay gateways. Here I would like to complain about WeChat Pay. WeChat Pay said that the documents are too bad and there are too many holes. I will also get WeChat Pay docking up later. Another good thing about Alipay is that the robot next to it is in place, so you can call if you can't. (tip: use the robot, hit the problem a few more times, and the manual will come out, or it won't come out manually. )
You need to set the application public key in this interface.
Click Open Settings Application Public key (others do not need to be set) Click Settings Application Public key
Ok, this is where the public key is entered. How to generate the key, please click to view the method of generating the key (below, download the key generation tool)
Open it according to the instructions after downloading (remember to open it according to the instructions)
Click to generate the key (note here: do not verify your generated key, because your verification will fail) We can directly copy the generated public key and put it.
There is no need to verify the accuracy of the public key and just click Save.
Step three
Import the jar package of alipay (jar package is available)
Https://docs.open.alipay.com/54/104506/ this is the payment demo there is a jar package, you can import.
The fourth step
Write code
Create an AppPayConfig class and put the corresponding value as shown in the following figure
Write action classes
The above content is what the java docking Alipay payment interface development is like, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.