- 博客(0)
- 资源 (4)
- 收藏
- 关注
delphi支付宝sdk
Delphi版 AlipaySDK的Demo程序,简单实用
代码片段
uses
Alipay.Client,
Alipay.Trade.Pay.Request,
Alipay.Trade.Pay.Response;
var
AlipayClient: TAlipayClient;
Request: IAlipayTradePayRequest;
Response: IAlipayTradePayResponse;
begin
AlipayClient := TAlipayClientBuilder.New.
.AppId(‘1234567890’) //APPID 即创建应用后生成
.Sandbox(True)//是否沙箱环境
.SignType(RSA2) //商户生成签名字符串所使用的签名算法类型,目前支持 RSA2 和 RSA,推荐商家使用 RSA2
.Charset(UTF-8) //请求和签名使用的字符编码格式,支持 GBK和 UTF-8
.PrivateKey(‘dfsagsg’) //开发者应用私钥,由开发者自己生成
.AlipayPublicKey(‘4646465’) //支付宝公钥,由支付宝提供
.Build;
Request := TAlipayTradePayRequest.Create;
Request.BizModel.OutTradeNo := ‘1313131121;
Request.BizModel.Scene := Tscene. BAR_CODE;
Request.BizModel.AuthCode := ‘111111’;
Request.BizModel.Subject := ‘商品’;
Request.BizModel.TotalAmount := 0.01;
Response:= AlipayClient.Execute<IAlipayTradePayResponse>(Request);
end;
2021-02-26
Delphi High Performance
Find performance bottlenecks and easily mitigate them
Discover different approaches to fix algorithms
Understand parallel programming and work with various tools included with Delphi
Master the RTL for code optimization
Explore memory managers and their implementation
Leverage external libraries to write better performing programs
2019-05-30
数据库索引设计与优化_13823909_(美)拉赫....pdf
本书提供了一种简单、高效、通用的关系型数据库索引设计方法。作者通过系统的讲解及大量的案例清晰地阐释了关系型数据库的访问路径选择原理,以及表和索引的扫描方式,详尽地讲解了如何快速地估算SQL运行的CPU时间及执行时间,帮助读者从原理上理解SQL、表及索引结构、访问方式等对关系型数据库造成的影响,并能够运用量化的方法进行判断和优化,指导关系型数据库的索引设计
2019-05-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人