支付宝 alipay.fund.trans.uni.transfer(单笔转账接口)功能整合

news/2024/12/2 21:49:19/

这里使用沙箱环境测试

下载证书

在这里插入图片描述

在这里插入图片描述

        alipayConfig.setCertContent("<-- 请填写您的应用公钥证书内容字符串 -->");alipayConfig.setAlipayPublicCertContent("<-- 请填写您的支付宝公钥证书内容字符串 -->");alipayConfig.setRootCertContent("<-- 请填写您的支付宝根证书内容字符串 -->");
	public static void main(String[] args) throws AlipayApiException {String privateKey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDVJIVTg7Vv1dFNjiIiq1NPW47Vc9QQKVJC8VdEXaOxlV8tXrs4whSkRLmwQsqkrWi0/eTaT2zOKj0OOd+lHHjfMF7XfolWpYJikqDmajh+F8j32RlJzwBV8tayrQed7oHdZAEui/Pfwyv/UYdTzBe9YcYw6HXWY6ZRBsEINnrKFF+NROj2tpXj50QKNW9yJNQgsrpu4F0JTj3a1pzQHieRGH7u/9GlFWd/kXXP1eiMR5ylgG8kEZrbwS2cf1d6YS1DJpOU9tq8KJ2qrmyyCBQjpQuzSFPHFXKnurCEGIMo+AQ+2FLINXs5d/wlVD0rMlOnBGH5u68447lFVctOfudXAgMBAAECggEAbcrtPvLmoGA0+81Oeitks8lHD18mCtkuPbuSJ25Q5yY5q+ZTbM5U0bVxLYGKXz/QYwMyQt6M/ro1T0GymZvMC7Qf9sOAvXhubJZ5eZeX2CQqarmTVDjkRGHeBJYrCUiV7tQX48FF86rW3CNEIX9Nb0mRTRpBsRkN0Ek5YCCoKbVaRq76RuHDpnYbGaEOEmf/oCyVzvNc/2G65QOjfD4X6tQ2KjOWToCa17D+Pap8H0HF0dHTXKldAg6uAz2A1Xu7/aVmMPAYs5rtLh4wDj9QSIXmgM4rGEqB/U1R92QptJBVRzSYbDXW2KgRvUYj5nbKVr0zYOVdALi7RIMSZpPYOQKBgQDqzGtlKjbHI3w3cr/wW/436UpvsfBK0SvsF2XDqzIU9DsQmSsoGnd97vDpV9wsVgmdchxjjzPfSBJhbPdgSKA2AS6sQxnyFwlJ7nD8yDEYKQICZ1Q2HrYjNhx25YA4lXbbIJC6ATBQ14ZTApIfEoDqQHZAuUEDjxaDchkIJ+OPmwKBgQDoY4Gv26pOpcXUn1BfHMcpJAAfRl27T4HnLxwvna389qIrKwaQLsUu1bvXTUjOc4uWVCUqDfa4xJbH/DZBp028cJYyHhcqVSc1Ju6rZmnGb4HWR4cKVwP78nIx+GTLFxJ2ekWgw5NPv6hIcqXWsFX7py6x5HOt/ZzcLsdaVNbo9QKBgQDpi2krWCDiVR6B/KaECszDik3a6c/Ma2BX1jIHvWn0Q7XYXbH6ktDWN2vzfcvnYbDwpYctVExRRFvcAknQwIxzCxwEhj3xeg5oNj62gN2sXWW9RFAUANpEDdekP8UZAzoU3cB28yW+05GtUbpMI9iMqI+2802Cn7nSBxR081A7DwKBgF9KFi5/G1l+fh1Oak1l5oCHI4mvd9XLp0+dsKgRtvtIQn0C+oD6vJ4UxB5nsVf+ZxlwTYDuEuH2soE0eSb4rFZ9sAjC7+rK2fXgjfM4Xl0g8hNkZwolXhvccVjuKp5gSpDMWGqwZ2JHC4ERidD7o3Y6Olp1e723ha9/ev0eVrVVAoGBALW8TFuGtGAMdlIQaOAnh8rKgLlXFBN0LOB3SOMv11p649qGOXfwzM9QpJbU2UMeNobUfXqo9t/sfyd1s/VnFLL+67UNmRtSkFK8RVORqhd41eh3P5YtQToYsQ/fqdwXyymFtag4RcBE6tWx1v4/o6uDZ4wuJcZT7yAl0vkvayAy";CertAlipayRequest alipayConfig = new CertAlipayRequest();alipayConfig.setPrivateKey(privateKey);//真实环境url="https://openapi.alipay.com/gateway.do"String url="https://openapi.alipaydev.com/gateway.do"alipayConfig.setServerUrl(url);alipayConfig.setAppId("");alipayConfig.setCharset("UTF8");alipayConfig.setSignType("RSA2");alipayConfig.setEncryptor("");alipayConfig.setFormat("json");alipayConfig.setCertContent("-----BEGIN CERTIFICATE-----\n" +"MIIDmTCCAoGgAwIB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FVUifWuA/46eOhDXsuiOD7E8lWIsmKq8A2HY6Uq1Mu6Xm\n" +"DiszAJc4hy2PhQP0qs0EE3MTGCsAcv6JTIvuHLKoalVJcTKIopYpTejZMQF5zrXoI5WXXxoxYAEr\n" +"zGSRhUekJ6532pox3GzEtAH3C6TlPz09SlR0ZUPBDb6jrbHIBkmrHRnx62cKKUKGJMZ3md7RG6hR\n" +"dKq6cmHdL4cCYnx2yg==\n" +"-----END CERTIFICATE-----");alipayConfig.setAlipayPublicCertContent("-----BEGIN CERTIFICATE-----\n" +"MIIDszCCApugAwIBAgIQICEJENCAoF0fKQMWtIcY2TANBgkqhkiG9w0BAQsFADCBkTELMAkGA1UE\n" +"BhMCQ04xGzAZBgNVBAoMEkFudCBGaW5hbmNpYWwgdGVzdDElMCMGA1UECwwcQ2VydGlmaWNhdGlv\n" +"biBBdXRob3JpdHkgdGVzdDE+MDwGA1UEAww1QW50IEZpbmFuY2lhbCBDZXJ0aWZpY2F0aW9uIEF1\n" +"dGhvcml0eSBDbGFzcyAyIFIxIHRlc3QwHhcNMjEwOTEwMDEyODA1WhcNMjMwOTEwMDEyODA1WjCB\n" +"hDELMAkGA1UEBhMCQ04xHzAdBgNVBAoMFmpmcWpibDM5NDVAc2FuZGJveC5jb20xDzANBgNVBAsM\n" +"BkFsaXBheTFDMEEGA1UEAww65pSv5LuY5a6dKOS4reWbvSnnvZHnu5zmioDmnK/mnInpmZDlhazl\n" +"j7gtMjA4ODYyMTk1NTMwMzA2ODCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKeGKctp\n" +"w38YLVC9t4ftppWhyQwr0+CKBxXG0OCXJPxP2GHOh4CyFoLW7GpcaV1IqM97/7eZPlC8PoL5/F9E\n" +"HBgQOUOUiRZTXPmlawfD/0wAjn6Cq0tdSEPf6L4ylXz0bMAVSSTrCDpyl8urbPFNwl/lCOrXvLvt\n" +"lQvKuV+xiBbLRWlMahlWnjy7i5ozt/+yoIWKszvmnkpAsVd228DIf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RpZmljYXRpb24gQXV0aG9y\n" +"aXR5IENsYXNzIDIgUjEgdGVzdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMh4FKYO\n" +"ZyRQHD6eFbPKZeSAnrfjfU7xmS9Yoozuu+iuqZlb6Z0SPLUqqTZAFZejOcmr07ln/pwZxluqplxC\n" +"5+B48End4nclDMlT5HPrDr3W0frs6Xsa2ZNcyil/iKNB5MbGll8LRAxntsKvZZj6vUTMb705gYgm\n" +"VUMILwi/ZxKTQqBtkT/kQQ5y6nOZsj7XI5rYdz6qqOROrpvS/d7iypdHOMIM9Iz9DlL1mrCykbBi\n" +"t25y+gTeXmuisHUwqaRpwtCGK4BayCqxRGbNipe6W73EK9lBrrzNtTr9NaysesT/v+l25JHCL9tG\n" +"wpNr1oWFzk4IHVOg0ORiQ6SUgxZUTYcCAwEAAaMSMBAwDgYDVR0PAQH/BAQDAgTwMA0GCSqGSIb3\n" +"DQEBCwUAA4IBAQBWThEoIaQoBX2YeRY/I8gu6TYnFXtyuCljANnXnM38ft+ikhE5mMNgKmJYLHvT\n" +"yWWWgwHoSAWEuml7EGbE/2AK2h3k0MdfiWLzdmpPCRG/RJHk6UB1pMHPilI+c0MVu16OPpKbg5Vf\n" +"LTv7dsAB40AzKsvyYw88/Ezi1osTXo6QQwda7uefvudirtb8FcQM9R66cJxl3kt1FXbpYwheIm/p\n" +"j1mq64swCoIYu4NrsUYtn6CV542DTQMI5QdXkn+PzUUly8F6kDp+KpMNd0avfWNL5+O++z+F5Szy\n" +"1CPta1D7EQ/eYmMP+mOQ35oifWIoFCpN6qQVBS/Hob1J/UUyg7BW\n" +"-----END CERTIFICATE-----\n");alipayConfig.setRootCertContent("-----BEGIN CERTIFICATE-----\n" +"MIIBszCCAVegAwIBAgIIaeL+wBcKxnswDAYIKoEcz1UBg3UFADAuMQswCQYDVQQG\n" +"EwJDTjEOMAwGA1UECgwFTlJDQUMxDzANBgNVBAMMBlJPT1RDQTAeFw0xMjA3MTQ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HjJXk9Rd5a9xfwkPO88trUpz5\n" +"4GmmwspDXjVFu9L0eFaRuH3KMha1Ak01citbF7cQLJlS7XI+tpkTGHEY5pt3EsQg\n" +"wykfZl/A1jrnSkspMS997r2Gim54cwz+mTMgDRhZsKK/lbOeBPpWtcFizjXYCqhw\n" +"WktvQfZBYi6o4sHCshnOswi4yV1p+LuFcQ2ciYdWvULh1eZhLxHbGXyznYHi0dGN\n" +"z+I9H8aXxqAQfHVhbdHNzi77hCxFjOy+hHrGsyzjrd2swVQ2iUWP8BfEQqGLqM1g\n" +"KgWKYfcTGdbPB1MCAwEAAaNjMGEwHQYDVR0OBBYEFG/oAMxTVe7y0+408CTAK8hA\n" +"uTyRMB8GA1UdIwQYMBaAFG/oAMxTVe7y0+408CTAK8hAuTyRMA8GA1UdEwEB/wQF\n" +"MAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQBLnUTfW7hp\n" +"emMbuUGCk7RBswzOT83bDM6824EkUnf+X0iKS95SUNGeeSWK2o/3ALJo5hi7GZr3\n" +"U8eLaWAcYizfO99UXMRBPw5PRR+gXGEronGUugLpxsjuynoLQu8GQAeysSXKbN1I\n" +"UugDo9u8igJORYA+5ms0s5sCUySqbQ2R5z/GoceyI9LdxIVa1RjVX8pYOj8JFwtn\n" +"DJN3ftSFvNMYwRuILKuqUYSHc2GPYiHVflDh5nDymCMOQFcFG3WsEuB+EYQPFgIU\n" +"1DHmdZcz7Llx8UOZXX2JupWCYzK1XhJb+r4hK5ncf/w8qGtYlmyJpxk3hr1TfUJX\n" +"Yf4Zr0fJsGuv\n" +"-----END CERTIFICATE-----");AlipayClient alipayClient = new DefaultAlipayClient(alipayConfig);AlipayFundTransUniTransferRequest request = new AlipayFundTransUniTransferRequest();//提现用户名(支付宝实名认证名字)String name="";//提现金额String  money="0.1";request.setBizContent( "{" +"\"out_biz_no\":\"" + System.currentTimeMillis() + "\"," +"\"trans_amount\":" + money+ "," +"\"biz_scene\":\"DIRECT_TRANSFER\"," +"\"product_code\":\"TRANS_ACCOUNT_NO_PWD\"," +"\"order_title\":\"主动提现:" + money + "元\"," +"\"payee_info\":{" +"\"identity\":\"" +"ddlxtk5246@sandbox.com" + "\"," +"\"identity_type\":\"ALIPAY_LOGON_ID\"," +"\"name\":\"" + name + "\"" +"}}");AlipayFundTransUniTransferResponse response = alipayClient.certificateExecute(request);System.out.println(response.getBody());if (response.isSuccess()) {System.out.println("调用成功");} else {System.out.println("调用失败");}}

http://www.ppmy.cn/news/911279.html

相关文章

音频分类-数据集:AudioSet【Google发行的声音版ImageNet】

GitHub&#xff1a;https://github.com/audioset/ontology 谷歌发布的大规模音频数据集&#xff0c;AudioSet 包括 632 个音频事件类的扩展类目和从YouTube视频绘制的 2084320 个人类标记的10秒声音剪辑的集合。 音频本体 (ontology) 被确定为事件类别的一张层级图&#xff0…

爬虫入门2 数据接口加密以及爬虫案例

爬虫加密 爬虫加密主要分为 HTML 实体编码加密、Unicode 加密方式、数据接口加密。 1 HTML 实体编码 1.1 实例地址 猫眼地址&#xff1a;http://pf.st.maoyan.com/dashboard 1.2 实例图 2 Unicode加密 无例子 3 数据接口加密 3.1 三种形式 标准算法加密&#xff08;密…

Fiddler替换HTTP Request Host

这边指的替换HTTP Request Host是&#xff0c;所有原先发到a.com的HTTP Request &#xff0c; Fiddler都帮你转发到b.com &#xff0c;而在浏览器中毫无感觉。 测试debug过程中常有这种需求&#xff0c;例如用www. dev.demo.com替换 www.demo.com 。原文来自&#xff1a;http:/…

Android第三方QQ登录,实用教程

1.登录账号&#xff0c;创建应用&#xff0c;生成APPID与APPKEY 2.下载相关SDK SDK下载地址&#xff1a;https://wiki.open.qq.com/wiki/mobile/SDK%E4%B8%8B%E8%BD%BD 3.将其SDK里面相关的文件拷到自己的项目当中去 需要将 open_sdk_r6137_lite.jar包放到自己的项目当中去…

2023需求最高的编程语言:Python、JavaScript和Java

科技招聘平台 CodinGame 和 CoderPad 最新发布了一份 2023 年科技行业招聘报告&#xff0c;基于对 14000 名专业人士的调查&#xff0c;对 2023 年科技行业招聘人员和求职者可能面临的情况进行了深入分析。其中一些关键亮点包括&#xff1a; 59% 的开发人员没有计算机科学方面的…

ASP.NET MVC4中使用AJAX

本实例展示在ASP.NET MVC4中如何使用AJAX。功能是实现留言的提交&#xff0c;后台程序对留言进行处理&#xff0c;然后将处理结果在前台显示。运行结果&#xff1a;主要代码&#xff1a;Views中的Create.cshtml建立留言表单&#xff1a;using (Html.BeginForm("Create&quo…

【2018.4.7】模拟赛之一-ssl2382 K好数【数位dp】

正题 大意 如果一个数每一位都小于k那么这个数是好数。给出n和k&#xff0c;求1-n里有多少个好数。 解题思路1 将起改为一个k1进制的数&#xff0c;那么每次加1后这个数都是好数。然后判断一下是否大于n&#xff08;十进制的情况下&#xff09; 解题思路2 数位dp&#xff0…

H5分享到微信好友朋友圈QQ好友QQ空间微博二维码

这是分享按钮&#xff1a; <button onclick"call()">通用分享</button> <button onclick"call(wechatFriend)">微信好友</button> <button onclick"call(wechatTimeline)">朋友圈</button> <button oncl…