UnionPay interface Test--verbose (JAVA)

Source: Internet
Author: User

Preparation materials

1. Registered Account Https://open.unionpay.com/ajweb/register?locale=zh_CN

2, login account-Help Center-Download, select Gateway Payment, download network management Payment Product technology Development Kit, there are some documents, you can also download down to see.

3. Development Tools eclipse+tomcat7.0

4, the introduction of engineering projects There is a Readme.txt can first look at the project catalog

Body Start

First, modify the configuration file and some parameters

Get test parameters

My parameters

① separately click Merchant Private key Certificate and UnionPay public key certificate to download

② Here's the test merchant number and the test entry address.

③ Rename the downloaded Merchant private key certificate to ACP_TEST_SIGN.PFX

④ to rename the downloaded UnionPay public key certificate to Acp_test_verify_sign.cer

⑤ in the D-Disk new folder Certs, the Project sr/cassets/test environment certificate inside the files copied to the newly created folder

⑥ ③④ the files that were renamed to D:\certs and replaced them.

Open the Acp_sdk.properties configuration file in the project, modify the request trade address, please refer to the "test parameters" here for the request trade address.

Modify the following locations (if you certs folder with me, then you are just like me)

Do you remember the test merchant number in your test parameters? To copy him over, modify every Java file inside the Merid, and some files do not have to modify. Here's an example.

Second, test my product--not tested--the gateway payment, click Start Test, and then silently wait 10 minutes (the document has instructions here test 10 minutes after the effective)

Use IE to access the address http://127.0.0.1:8080/ACPSample_B2C/(remember not to use 360 will appear the problem), enter your test merchant number, click on the UnionPay Payment page, there will be a certificate security issue, regardless of his continued access

Enter the payment page, the test parameters below the bank card to test it, click to confirm payment, is not the payment success?

The development of the test project here will run, you can enjoy debugging, read the document, read the code!

UnionPay interface Test--verbose (JAVA)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.