| | |
| | | package com.tourguide.common.huifu.properties; |
| | | |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * 斗拱商户配置。 |
| | | * |
| | | * 备注:所有敏感值都从环境变量或配置中心注入,禁止在源码中写真实商户号、私钥或公钥。 |
| | | */ |
| | | @Component |
| | | @ConfigurationProperties(prefix = "huifu") |
| | | public class HuiFuProperties { |
| | | /** |
| | |
| | | * 对外可访问的回调根地址。 |
| | | */ |
| | | private String callbackPath; |
| | | /** 聚合支付创建接口地址。 */ |
| | | private String paymentCreateUrl = "https://api.huifu.com/v4/trade/payment/create"; |
| | | |
| | | public String getProductId() { return productId; } |
| | | public void setProductId(String productId) { this.productId = productId; } |
| | |
| | | public void setUpperHuifuId(String upperHuifuId) { this.upperHuifuId = upperHuifuId; } |
| | | public String getCallbackPath() { return callbackPath; } |
| | | public void setCallbackPath(String callbackPath) { this.callbackPath = callbackPath; } |
| | | public String getPaymentCreateUrl() { return paymentCreateUrl; } |
| | | public void setPaymentCreateUrl(String paymentCreateUrl) { this.paymentCreateUrl = paymentCreateUrl; } |
| | | } |