2
0

feat: unionpay support and config for payment

This commit is contained in:
zhangsz
2025-01-04 17:54:39 +08:00
parent 3ad7df0e0a
commit 44b521e4ac
10 changed files with 205 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ wxpay:
mchKey: 1525342aa
subAppId: #服务商模式下的子商户公众账号ID
subMchId: #服务商模式下的子商户号
keyPath: /opt/wfc/config/wxpay/wxpay_key.pem
keyPath: /opt/wfc/conf/cert/wxpay/wfc-wxpay.pem
useSandboxEnv: false
alipay:
@@ -119,4 +119,38 @@ ccpay:
merchantId: merchant-id-from-yml
currency: USD
timeout: 30
callbackUrl: https://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/payment/callback
callbackUrl: https://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/payment/callback
unionpay:
merId: 700000000000001
keyPrivateCert: /opt/wfc/conf/cert/unionpay/wfc-root.pfx
keyPrivateCertPwd: 123456
signCertType: PKCS12
encryptCertPath: /opt/wfc/conf/cert/unionpay/wfc-root.cer
acpMiddleCert: /opt/wfc/conf/cert/unionpay/wfc-middle.cer
acpRootCert: /opt/wfc/conf/cert/unionpay/wfc-root.cer
certSign: true
frontUrl: https://gateway.test.95516.com/gateway/api/frontTransReq.do
backUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/notify
signMethod: 01
version: 5.1.0
channelType: 07
accessType: 0
currencyCode: 156
bizType: 000201
txnType: 01
txnSubType: 01
payTimeout: 30
queryTimeout: 30
refundTimeout: 30
frontFailUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/fail
frontSuccessUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/success
frontBackUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/front
backBackUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/back
frontNotifyUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/front/notify
backNotifyUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/back/notify
refundNotifyUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/refund/notify
queryNotifyUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/query/notify
refundSuccessUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/refund/success
refundFailUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/unionpay/refund/fail
querySuccessUrl: