I. Pre-development preparation (always change the control mode to test environment in development)
1. Open https://open.unionpay.com/, follow up the document download, FAQ query and so on this platform operation.
2. Download the specification and development package. Help Center-Download-product Interface Specification-Mobile control Payment Product Interface Specification, help Center-download-product Interface Specification-Mobile phone control payment product technology Development kit. (The ApplePay Background section is the same as the control product, except that the controls are tuned differently.) )
3. Developers should first look at 6.2 of the consumption of the trading process.
4. Relevant test parameters:
If you have signed up and have your own test merchant, you can test it directly with your merchant number, which is in the test certificate development package. * Try to use the real merchant number test, to prevent sometimes the parameter mismatch can be found early.
If you do not have a contract, or the merchant number has not been assigned, please obtain the merchant in the platform and open the transaction permission by:
A) registration in the upper left corner;
b) in the upper right corner after landing my test-test parameters
c) My test-product-Choose your own integrated.
Test Card Information Description:
Complete full-process testing cannot be done because Apple does not provide a test environment.
The control will go to Apple to read the real card at the time of the test, but it will be replaced with 6259020040003629 when actually trading back.
The card that displays the transaction in the control does not trade in real, and the password can be entered freely.
The code card number in the reconciliation file will be displayed as 6259020040003629 of the card's post code information.
II. Client Development Steps
1. Reference document "China Silver Joint Machine Payment Control User Guide" (this document is located in the doc directory of the foreground development package), set up the project.
2. Before the development of the consumer (get TN) request in the background, app development can see how the demo code controls the control, the demo will be the default by one of UnionPay's merchant simulation to obtain TN (HTTP://202.101.25.178:8080/SIM/GETTN or http:// 101.231.204.84:8091/SIM/GETACPTN), then need to change from the merchant's own backstage to get TN.
3. Background development to complete the consumption request, and background development to discuss the background and the way to transfer tn between apps.
4. Instead, do a test from your own background tn.
5. Add additional business logic on your own.
* Problems can be solved by https://open.unionpay.com/first to see if we can solve:
1) If it is a code exception: Help Center-faq The exception copy a small search, or you can go to the FAQ's development problem category, search "Android" or "IOS" can be found in the corresponding full-scale development problem.
2) If there is a control error, the error message has 7 digits: Technical Integration-answer code, enter a 7-digit search.
3) If the control is wrong, there is no error message or No 7 digits: Help Center-faq-test the problem, search "app" can search the control of the full amount of testing problems.
* The successful exit of the control after the development Package demo has a section of the code to verify the signature, the code is in the mobile app (here is the demo app) in the verification, please note that must be modified to pass to the background for verification, corresponding to the background development package demo Verifyappdata file. (Check the Public key certificate expires after the update, if you put in the app will be difficult to update.) )
Third, the background development steps
1. Open the background development package, find the corresponding language \ Sample code folder, see Readme.txt, follow the steps to deploy, modify the configuration file, etc.
2. Where the Form_6_2_appconsume interface can obtain TN, please follow the client development to determine the way to pass TN between the backstage and the app, the simplest way is to print TN directly on the page, but some languages directly print TN only when the line breaks. Mobile phone development is recommended to trim when TN is received.
3. Follow-up reference readme completed.
* Problems can be solved by https://open.unionpay.com/first to see if we can solve:
1) If it is a code exception: Help Center-faq The exception copy a small search, or you can go to the FAQ's development problem category, search "Java", "C #", "php" can be searched for the corresponding full-scale development problems.
2) If it is normal to receive the answer Respcode non 00, you can look at respmsg, inside the 7-digit number on the platform technology integration-answer code search.
3) If there are other errors, see if you have any problems with the FAQ's test question category.
# #银联ApplePay控件开发包1.1\ Development Step Wizard.
UnionPay Cloud Flash Development Tuning Step Wizard