2
0

feat: payment update

This commit is contained in:
zhangsz
2025-01-04 15:12:09 +08:00
parent 35889fe4f7
commit c454de459c
39 changed files with 1955 additions and 868 deletions

View File

@@ -55,7 +55,7 @@ spring:
# mybatis-plus配置
mybatis-plus:
# 搜索指定包别名
type-aliases-package: org.wfc.system
type-aliases-package: org.wfc.payment.*.model
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapper-locations: classpath:mapper/**/*.xml
global-config:
@@ -72,19 +72,13 @@ swagger:
logging:
level:
root: debug
org:
springframework:
web: debug
mybatis:
mapper: debug
wfc:
system: debug
com:
github:
binarywang: debug
file:
name: /opt/wfc/logs/wfc-payment.log
root: info
org.springframework.web: info
org.mybatis.mapper: debug
com.github.binarywang: debug
org.wfc.payment.wxpay: debug
org.wfc.payment.alipay: debug
org.wfc.payment.ccpay: debug
wxpay:
appId: 121412414112
@@ -104,7 +98,7 @@ alipay:
signType: RSA2
charset: utf-8
gatewayUrl: https://openapi.alipaydev.com/gateway.do
logPath: /opt/wfc/logs/alipay/alipay_log.txt
logPath: /opt/wfc/logs/alipay/alipay.log
maxQueryRetry: 5
queryDuration: 5
maxCancelRetry: 3
@@ -117,9 +111,45 @@ alipay:
supportPhone:
ccpay:
url: https://api.paymentgateway.com/v1/payments
paymentUrl: https://api.paymentgateway.com/v1/payment
tokenUrl: https://api.paymentgateway.com/v1/token
queryUrl: https://api.paymentgateway.com/v1/query
refundUrl: https://api.paymentgateway.com/v1/refund
apiKey: api-key
merchantId: merchant-id
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-union.pfx
keyPrivateCertPwd: 123456
signCertType: PKCS12
encryptCertPath: /opt/wfc/conf/cert/unionpay/wfc-union.cer
acpMiddleCert: /opt/wfc/conf/cert/unionpay/wfc-middle.cer
acpRootCert: /opt/wfc/conf/cert/unionpay/wfc-root.cer
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: