提供了 支付 查詢 退款 交易關閉幾個簡單的接口demojava
https://docs.open.alipay.com/270/106291/web
1.建立一個空的maven項目apache
2.生成web.xmlapi
3.引入依賴tomcat
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency>
4.指定maven打包的xml路徑app
<build> <finalName>apiPay4</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <configuration> <webXml>web\WEB-INF\web.xml</webXml> </configuration> </plugin> </plugins> </build>
5.複製ali demo的config配置文件包名保持一致jsp
6.複製jsp到web目錄maven
5.複製jar到lib工具
6.導入jar測試
7.部署準備
8.發佈到tomcat
10.啓動訪問http://localhost:8080/index.jsp 表示成功
,相似測試環境,不須要去簽約接口就能進行支付測試
https://openhome.alipay.com/platform/appDaily.htm?tab=info
1.下載祕鑰工具
https://docs.open.alipay.com/291/105971
2.生成祕鑰
3.複製公鑰上傳到沙箱
沒上傳這裏有個上傳按鈕