alipay-yanhua
v1.1.4
Published
支付宝小程序支付组件
Downloads
2
Readme
安装:npm i alipay-yanhua --save
自费收银台组件引入
json引入:需要从node_module中找到alipay-yanhua文件夹,使用相对路径或者绝对路径引入到需要使用的组件当中
{
"usingComponents": {
"alipay-yanhua": "/node_modules/alipay-yanhua/src/index/index"
}
}
axml使用
<alipay-yanhua
orgId="{{ orgId }}"
appId="{{ appId }}"
innerOrderNo="{{ innerOrderNo }}"
tradeDate="{{ tradeDate }}"
userId="{{ userId }}"
baseUrl="{{ baseUrl }}"
callbackUrl="{{ callbackUrl }}"
ordToken="{{ ordToken }}"
>
</alipay-yanhua>
Js需要的参数:
data: {
orgId: '',
appId: '',
innerOrderNo: '',
tradeDate: '',
userId: '',
baseUrl: '',
callbackUrl: '',
ordToken: '',
},
参数说明:
orgId:机构id
appId:机构下应用id
innerOrderNo:支付平台订单号
tradeDate:交易日期
userId:支付宝用户标识
baseUrl:接口请求网关(带转发关键字,示例:https://xxx.xxx.xxx/api)
callbackUrl:支付完成回调小程序页面(示例:/pages/index/index)
ordToken:支付平台签名(1.1.4新增)
医保收银台组件引入
json引入:需要从node_module中找到alipay-yanhua文件夹,使用相对路径或者绝对路径引入到需要使用的组件当中
{
"usingComponents": {
"alipay-yanhua": "/node_modules/alipay-yanhua/src/miPay/miPay"
}
}
axml使用
<alipay-yanhua
callbackUrl="{{ callbackUrl }}"
userId="{{ userId }}"
address="{{ address }}"
>
</alipay-yanhua>
Js需要的参数:
data: {
userId: 'xxxxx',
callbackUrl: '',
address: '',
},
参数说明:
userId:支付宝用户标识
callbackUrl:支付完成回调小程序页面(示例:/pages/index/index)
address:支付平台下单接口返回的address(cashier字段)