2
0

feat: payment modules support alipay and credit card pay api

This commit is contained in:
zhangsz
2024-12-30 20:30:19 +08:00
parent 0207122187
commit d0dee7f7a4
45 changed files with 490 additions and 2212 deletions

View File

@@ -1,5 +1,12 @@
# spring配置
spring:
application:
name: wfc-payment
cloud:
nacos:
discovery:
server-addr: ${NACOS_SERVER_ADDR:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAMESPACE:wfc-prod}
main:
allow-bean-definition-overriding: true
@@ -87,3 +94,32 @@ wxpay:
subMchId: #服务商模式下的子商户号
keyPath: /opt/wfc/config/payment/wxpay_key.pem
useSandboxEnv: false
alipay:
appId: 121412414112
privateKey: 1131412414
publicKey: 1525342aa
notifyUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/alipay/notify
returnUrl: http://wfc-gateway:${GATEWAY_SERVER_PORT:8080}/alipay/return
signType: RSA2
charset: utf-8
gatewayUrl: https://openapi.alipaydev.com/gateway.do
logPath: /opt/wfc/config/payment/alipay_log.txt
maxQueryRetry: 5
queryDuration: 5
maxCancelRetry: 3
cancelDuration: 2
heartbeatDelay: 5
heartbeatDuration: 5
storeId:
storeName:
supportEmail:
supportPhone:
ccpay:
url: https://api.paymentgateway.com/v1/payments
apiKey: your-api-key
merchantId: your-merchant-id
currency: USD
timeout: 30
callbackUrl: https://yourdomain.com/payment/callback