以下为益华云结算接入步骤
本文档展示了如何从零开始,使用益华云开放平台快速接入云结算,完成与微信、支付宝、益华钱包的对接。
注意:文档中的代码示例和Demo是用来阐述API基本使用方法的,仅针对大众场景。仅供参考,特殊情况还请自行扩展,确保符合自身业务需求。
第一步:获取YHDT编号、AppKey和AppSecret
要在您的应用中使用益华云结算的接口能力,您需要先向益华申请YHDT(益华鼎泰号),通过后会为您生成客户唯一标识YHDT编号、AppKey和AppSecret,并且可以申请开通开放产品使用权限,通过YHDT您的应用才能调用益华云产品的接口能力。
第二步:接入方本地配置
接入方需要在本地保存YHDT号、AppKey和AppSecret,便于在调用相关接口时使用。
同时保存以下接口地址:
沙箱环境
基础接口组 http://api.sandbox.yhsms.com.cn/UserAccount/Base/BaseService.svc
账户接口组 http://api.sandbox.yhsms.com.cn/UserAccount/Account/AccountService.svc
用户接口组 http://api.sandbox.yhsms.com.cn/UserAccount/User/UserService.svc
积分接口组 http://api.sandbox.yhsms.com.cn/UserAccount/Bonus/BonusService.svc
卡券接口组 http://api.sandbox.yhsms.com.cn/UserAccount/Card/CardService.svc
生产环境
基础接口组 http://api.yhsms.com.cn/UserAccount/Base/BaseService.svc
账户接口组 http://api.yhsms.com.cn/UserAccount/Account/AccountService.svc
用户接口组 http://api.yhsms.com.cn/UserAccount/User/UserService.svc
积分接口组 http://api.yhsms.com.cn/UserAccount/Bonus/BonusService.svc
卡券接口组 http://api.yhsms.com.cn/UserAccount/Card/CardService.svc
第三步:获取平台级接口访问权限
https://www.showdoc.cc/13142974974984?page_id=77307300371746
第四步:创建云结算预处理单据
https://www.showdoc.cc/13142974974984?page_id=77784170327194
第五步:唤起支付页面
https://www.showdoc.cc/13142974974984?page_id=77789562777992
第六步:获取支付结果
https://www.showdoc.cc/13142974974984?page_id=77790072507882