feat: add Alipay payment (#251)

增加支付宝当面付(扫码支付)和网页跳转支付功能
This commit is contained in:
ZeroDeng
2024-06-06 01:11:06 +08:00
committed by GitHub
parent e2bfec77a4
commit 40a6a5d8d8
6 changed files with 252 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
const PaymentType = {
epay: '易支付'
epay: '易支付',
alipay: '支付宝'
};
const CurrencyType = {
@@ -67,6 +68,42 @@ const PaymentConfig = {
}
]
}
},
alipay: {
app_id: {
name: '应用ID',
description: '支付宝应用ID',
type: 'text',
value: ''
},
private_key: {
name: '应用私钥',
description: '应用私钥,开发者自己生成,详细参考官方文档 https://opendocs.alipay.com/common/02kipl?pathHash=84adb0fd',
type: 'text',
value: ''
},
public_key: {
name: '支付宝公钥',
description: '支付宝公钥,详细参考官方文档 https://opendocs.alipay.com/common/02kdnc?pathHash=fb0c752a',
type: 'text',
value: ''
},
pay_type: {
name: '支付类型',
description: '支付类型,需要您再支付宝开发者中心开通相关权限才可以使用对应类型支付方式',
type: 'select',
value: '',
options: [
{
name: '当面付',
value: 'facepay'
},
{
name: '跳转支付',
value: 'pagepay'
}
]
}
}
};