feat: payment modules support alipay and credit card pay api
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user