以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 请教,支付宝支付中需要的rsa2加密方法 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=139761) |
-- 作者:wandongliang -- 发布时间:2019/8/20 21:18:00 -- 请教,支付宝支付中需要的rsa2加密方法 各位老师,支付宝支付中,加密方式为RSA2,有没有适合VB语言,foxtable中能直接调用的RSA2代码 |
-- 作者:有点蓝 -- 发布时间:2019/8/20 22:04:00 -- 支付宝有提供.net版本的sdk,直接调用sdk,人家已经封装好了,没有必要自己做。 c#转换为vb.net:http://converter.telerik.com/
|
-- 作者:wandongliang -- 发布时间:2019/8/20 22:12:00 -- 请问蓝老师,封装的SDK怎么调用到狐表里面来?有没有类似案例? |
-- 作者:有点蓝 -- 发布时间:2019/8/20 22:19:00 -- 安装一个vs2010及以上版本,下载源码,编译为dll,或者下载附件的dll: |
-- 作者:wandongliang -- 发布时间:2019/8/21 10:08:00 -- 蓝老师,dll文件已经引用,可是在foxtable里面如何用代码使用dll文件?如何将参数传入dll文件当中? |
-- 作者:有点蓝 -- 发布时间:2019/8/21 10:11:00 -- 参考开发文档:https://docs.open.alipay.com/54/103419/ 照着里面.net的实例做,如果做接口不看开发文档,或者说完全看不懂,建议还是不用做了
|
-- 作者:wandongliang -- 发布时间:2019/8/21 15:13:00 -- 已经将dll文件引用,为什么还是报错 代码 Private Sub SurroundingSub() Dim client As IAopClient = New DefaultAopClient("https://openapi.alipay.com/gateway.do", "app_id", "merchant_private_key", "json", "1.0", "RSA2", "alipay_public_key", "GBK", False) Dim request As AlipayTradePayRequest = New AlipayTradePayRequest() End Sub
|
-- 作者:wandongliang -- 发布时间:2019/8/21 15:15:00 -- 报错IAopClient类型未定义,这个类型不是就在AopSdk.dll里面吗? |
-- 作者:wandongliang -- 发布时间:2019/8/21 15:33:00 -- 看到了前面的例子,是一样的问题,已明白 |
-- 作者:wandongliang -- 发布时间:2019/8/21 18:59:00 -- 请教一下蓝老师: 支付宝支付,调用API实例中,这段代码 request.setBizContent("{" +
"\\"out_trade_no\\":\\"20150320010101001\\"," +
"\\"scene\\":\\"bar_code\\"," +
"\\"auth_code\\":\\"28763443825664394\\"," +
"\\"product_code\\":\\"FACE_TO_FACE_PAYMENT\\"," +
"\\"subject\\":\\"Iphone6 16G\\"," +
"\\"buyer_id\\":\\"2088202954065786\\"," +
"\\"seller_id\\":\\"2088102146225135\\"," +
"\\"total_amount\\":88.88," +
"\\"trans_currency\\":\\"USD\\"," +
"\\"settle_currency\\":\\"USD\\"," +
"\\"discountable_amount\\":8.88," +
"\\"body\\":\\"Iphone6 16G\\"," +
" \\"goods_detail\\":[{" +
" \\"goods_id\\":\\"apple-01\\"," +
"\\"goods_name\\":\\"ipad\\"," +
"\\"quantity\\":1," +
"\\"price\\":2000," +
"\\"goods_category\\":\\"34543238\\"," +
"\\"categories_tree\\":\\"124868003|126232002|126252004\\"," +
"\\"body\\":\\"特价手机\\"," +
"\\"show_url\\":\\"http://www.alipay.com/xxx.jpg\\"" +
" }]," +
"\\"operator_id\\":\\"yx_001\\"," +
"\\"store_id\\":\\"NJ_001\\"," +
"\\"terminal_id\\":\\"NJ_T_001\\"," +
"\\"extend_params\\":{" +
"\\"sys_service_provider_id\\":\\"2088511833207846\\"," +
"\\"industry_reflux_info\\":\\"{\\\\\\\\\\\\\\"scene_code\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"metro_tradeorder\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"channel\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"xxxx\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"scene_data\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"asset_name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"ALIPAY\\\\\\\\\\\\\\"}}\\"," +
"\\"card_type\\":\\"S0JP0000\\"" +
" }," +
"\\"timeout_express\\":\\"90m\\"," +
"\\"auth_confirm_mode\\":\\"COMPLETE:转交易支付完成结束预授权;NOT_COMPLETE:转交易支付完成不结束预授权\\"," +
"\\"terminal_params\\":\\"{\\\\\\"key\\\\\\":\\\\\\"value\\\\\\"}\\"," +
"\\"promo_params\\":{" +
"\\"actual_order_time\\":\\"2018-09-25 22:47:33\\"" +
" }," +
"\\"advance_payment_type\\":\\"ENJOY_PAY_V2\\"" +
" }"); setBizContent里面的符号或者格式应用到foxtable里的时候需要改吗?这里面用的是c#语法,和VB不是有一定区别吗 |