Android App payment series (two): detailed guide for Alipay SDK access (with official payment demo)
In the final analysis, a mobile Internet company always needs paying users to make profits. It is obviously unwise for companies with limited resources to develop their own payment system. There are many mature mobile payment providers in China, and Ali is one of them.
The author summed up the access process of Alipay Android SDK under Ali, which is for future reference.
The access process is as follows:
1 sign up to become Alipay merchants
Signing address: https://b.alipay.com/ ,
Only developers who become contracted merchants can have the qualifications to integrate Alipay app payment.
Signing materials: 1) business license 2) app description document 3) merchant operation information, merchant contact and other information
App APK shall also be provided for review if necessary. Code integration can be performed after approval.
After the approval is passed, the information such as the merchant number assigned by Alipay can be obtained.
2 client code integration preparation
2.1 importing jar package resources
The latest version of Alipay's jar package download address: http://xiazai.jb51.net/201611/yuanma/alipaySdk_ jb51.jar
After downloading, copy it to the LIBS directory, and eclipse will automatically add dependencies. Android studio needs to add a line in the gradle of the app
compile files('libs/alipaySdk-20160223.jar')