mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-14 05:43:46 +08:00
docs
This commit is contained in:
@@ -51,27 +51,5 @@ public class WechatPayProperties {
|
||||
* your pay server domain
|
||||
*/
|
||||
private String domain;
|
||||
/**
|
||||
* app in winxin open platform
|
||||
*/
|
||||
private App app;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* wechat mp for send coupons and notification.
|
||||
*/
|
||||
@Data
|
||||
public static class App {
|
||||
/**
|
||||
* app id
|
||||
*/
|
||||
private String appId;
|
||||
/**
|
||||
* app secret
|
||||
*/
|
||||
private String appSecret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -95,6 +95,8 @@ public class WechatDirectPayApi extends AbstractApi {
|
||||
WechatPayProperties.V3 v3 = this.wechatMetaBean().getV3();
|
||||
payParams.setAppid(v3.getAppId());
|
||||
payParams.setMchid(v3.getMchId());
|
||||
String notifyUrl = v3.getDomain().concat(payParams.getNotifyUrl());
|
||||
payParams.setNotifyUrl(notifyUrl);
|
||||
URI uri = UriComponentsBuilder.fromHttpUrl(type.uri(WeChatServer.CHINA))
|
||||
.build()
|
||||
.toUri();
|
||||
|
||||
Reference in New Issue
Block a user