接入前准备:https://opensupport.alipay.com/support/helpcenter/192/201602472807?ant_source=zsearch
API文档地址:https://opensupport.alipay.com/support/helpcenter/107/201602481112
Maven依赖
<!-- 老版阿里支付宝sdk引入-->
<dependency>
<groupId>com.alipay.sdk</groupId>
<artifactId>alipay-sdk-java</artifactId>
<version>4.10.81.ALL</version>
</dependency>
公钥证书请求接口Demo
public static void main(String[] args) throws AlipayApiException {
// TODO Auto-generated method stub
//编码格式
String CHARSET = "utf-8"