diff --git a/src/main/java/com/example/sinitto/common/properties/KakaoProperties.java b/src/main/java/com/example/sinitto/common/properties/KakaoProperties.java index 2600627b..4f57b77c 100644 --- a/src/main/java/com/example/sinitto/common/properties/KakaoProperties.java +++ b/src/main/java/com/example/sinitto/common/properties/KakaoProperties.java @@ -11,6 +11,7 @@ public record KakaoProperties( String bankName, String accountNumber, String name, - String frontUriWithoutHttps + String frontUriWithoutHttps, + String PayUrl ) { } diff --git a/src/main/java/com/example/sinitto/common/service/KakaoMessageService.java b/src/main/java/com/example/sinitto/common/service/KakaoMessageService.java index d9a6785d..d4c81465 100644 --- a/src/main/java/com/example/sinitto/common/service/KakaoMessageService.java +++ b/src/main/java/com/example/sinitto/common/service/KakaoMessageService.java @@ -65,7 +65,14 @@ public void sendPointChargeRequestReceivedMessage(String email, int point, Strin "}," + "\"buttons\": [" + "{" + - "\"title\": \"서비스 이용하기\"," + + "\"title\": \"서비스 이용\"," + + "\"link\": {" + + "\"web_url\": \"%s\"," + + "\"mobile_web_url\": \"%s\"" + + "}" + + "}," + + "{" + + "\"title\": \"송금하기\"," + "\"link\": {" + "\"web_url\": \"%s\"," + "\"mobile_web_url\": \"%s\"" + @@ -73,8 +80,9 @@ public void sendPointChargeRequestReceivedMessage(String email, int point, Strin "}" + "]" + "}", - name, SINITTO_IMAGE_URL, kakaoProperties.frontUri(), kakaoProperties.frontUri(), point, depositMessage, - kakaoProperties.bankName(), kakaoProperties.accountNumber(), kakaoProperties.name(), kakaoProperties.frontUri(), kakaoProperties.frontUri() + name, SINITTO_IMAGE_URL, kakaoProperties.PayUrl(), kakaoProperties.PayUrl(), point, depositMessage, + kakaoProperties.bankName(), kakaoProperties.accountNumber(), kakaoProperties.name(), + kakaoProperties.frontUri(), kakaoProperties.frontUri(), kakaoProperties.PayUrl(), kakaoProperties.PayUrl() );