One, the online payment is divided into two cases, one method is to use direct and bank payment interface, the other way is to use a third-party payment platform and bank docking to complete payment.
1. Direct and bank docking.
2. Use of third-party payment platforms
3. Common third-party payment platforms
Second, the use of ePRO payment interface to implement the Java online payment function (ABC).
1. Full source code:https://github.com/kdyzm/day21_2_pay
2. Timing diagram of the implementation process
3. Technical Highlights
(1) All parameters must be taken with the GET request, parameter names refer to the request parameter list in the developer documentation
(2) Use the Paymentutil class for encryption, which is written by Ebaotech payment Company
(3) After the payment is successful, notify the Merchant button that the URL is local, that is, http://localhost:8080/backServlet (localhost only makes sense locally), why it can be successfully returned here, the principle of the above flowchart. Key point: Redirection technology solves this problem.
4. A few information required.
(1) Merchant account: p1_merid=10001126856
(2) Keyvaue:keyvalue=69cl522av6q613ii4w6u8k6xuw8vm1n6bfgyv769220iuye9u37n4y7ri4pl of the merchant
(3) Paymentutil class.
Paymentutil.java
(4) Note: The Merchant account is a teacher's account of the Wisdom Podcast, when the test will actually hit the money in the past, so in the choice to pay the amount of time to be cautious!!!
5. Payment Process:
(1) Fill in the order information
(2) After clicking the Payment button, redirect to the ABC Payment interface ( If the speed is slow to see the process of epro payment processing).
(3) I'm doing a K-yard payment.
(4) Fill in the appropriate information, after the authentication (SMS), click the OK button (Google Browser does not support the subsequent operation, I changed IE browser)
(5) Payment success, automatically jump to the payment success page
(6) Click the Notify Merchant button to jump to the same page.
Iii. Summary
1, Java implementation of online payment function is not difficult, almost no technical points, the key is too cumbersome, to learn to read the developer documentation.
2. Redirection technology is important here to understand the use of redirects in terms of timing diagrams.
"Java EE Learning 21", "Using the ePRO payment interface to implement the Java online payment function"