فهرست منبع

네이버페이 주문형 찜하기 수정

card007 4 سال پیش
والد
کامیت
fcad3cf132

+ 2 - 1
src/main/java/com/style24/front/biz/service/TsfOrderService.java

@@ -2306,9 +2306,10 @@ public class TsfOrderService {
 
 
 		if (StringUtils.isNotBlank(itemId)) {
 		if (StringUtils.isNotBlank(itemId)) {
 			String popupUrl = env.getProperty("naverPay.zzim.popup.url");
 			String popupUrl = env.getProperty("naverPay.zzim.popup.url");
-			log.info("popupUrl >>> {}", popupUrl);
+			String mobileUrl = env.getProperty("naverPay.zzim.mobile.url");
 			result.put("state", "success");
 			result.put("state", "success");
 			result.put("action", popupUrl);
 			result.put("action", popupUrl);
+			result.put("actionMobile", mobileUrl);
 			result.put("shopId", shopId);
 			result.put("shopId", shopId);
 			result.put("itemId", itemId);
 			result.put("itemId", itemId);
 		} else {
 		} else {

+ 1 - 0
src/main/resources/config/application-locd.yml

@@ -96,6 +96,7 @@ naverPay:
     order.mobile.url: https://test-m.pay.naver.com/o/customer/buy/
     order.mobile.url: https://test-m.pay.naver.com/o/customer/buy/
     zzim.api.url: https://test-pay.naver.com/customer/api/wishlist.nhn
     zzim.api.url: https://test-pay.naver.com/customer/api/wishlist.nhn
     zzim.popup.url: https://test-pay.naver.com/customer/wishlistPopup.nhn
     zzim.popup.url: https://test-pay.naver.com/customer/wishlistPopup.nhn
+    zzim.mobile.url: https://test-m.pay.naver.com/mobile/customer/wishList.nhn
     access.license: 01000100005b15bb8faab722d100d589f34bd64843659e37a168b3617443c4f52a3fda45b8
     access.license: 01000100005b15bb8faab722d100d589f34bd64843659e37a168b3617443c4f52a3fda45b8
     secret.key: AQABAADtZ/jOC1Y3LNsyI0TWwCMvPfrg0sqM9pnxliSegbjSqQ==
     secret.key: AQABAADtZ/jOC1Y3LNsyI0TWwCMvPfrg0sqM9pnxliSegbjSqQ==
     port.address: http://sandbox.api.naver.com/Checkout/MallService5
     port.address: http://sandbox.api.naver.com/Checkout/MallService5

+ 3 - 2
src/main/resources/config/application-style.yml

@@ -106,8 +106,9 @@ naverPay:
     order.api.url: https://test-api.pay.naver.com/o/customer/api/order/v20/register
     order.api.url: https://test-api.pay.naver.com/o/customer/api/order/v20/register
     order.pc.url: https://test-order.pay.naver.com/customer/buy/
     order.pc.url: https://test-order.pay.naver.com/customer/buy/
     order.mobile.url: https://test-m.pay.naver.com/o/customer/buy/
     order.mobile.url: https://test-m.pay.naver.com/o/customer/buy/
-    zzim.api.url: https://test-pay.naver.com/customer/api/wishlist.nhn
-    zzim.popup.url: https://test-pay.naver.com/customer/wishlistPopup.nhn
+    zzim.api.url: https://pay.naver.com/customer/api/wishlist.nhn
+    zzim.popup.url: https://pay.naver.com/customer/wishlistPopup.nhn
+    zzim.mobile.url: https://m.pay.naver.com/mobile/customer/wishList.nhn
     access.license: 01000100005b15bb8faab722d100d589f34bd64843659e37a168b3617443c4f52a3fda45b8
     access.license: 01000100005b15bb8faab722d100d589f34bd64843659e37a168b3617443c4f52a3fda45b8
     secret.key: AQABAADtZ/jOC1Y3LNsyI0TWwCMvPfrg0sqM9pnxliSegbjSqQ==
     secret.key: AQABAADtZ/jOC1Y3LNsyI0TWwCMvPfrg0sqM9pnxliSegbjSqQ==
     port.address: http://sandbox.api.naver.com/Checkout/MallService5
     port.address: http://sandbox.api.naver.com/Checkout/MallService5

+ 1 - 1
src/main/webapp/WEB-INF/views/mob/goods/GoodsDealDetailFormMob.html

@@ -344,7 +344,7 @@
 														
 														
 														window.open('about:blank', 'popupView');
 														window.open('about:blank', 'popupView');
 														document.nPayWishForm.target = 'popupView';
 														document.nPayWishForm.target = 'popupView';
-														document.nPayWishForm.action = result.action;
+														document.nPayWishForm.action = result.actionMobile;
 														document.nPayWishForm.submit();
 														document.nPayWishForm.submit();
 													} else {
 													} else {
 														mcxDialog.alert(result.message);
 														mcxDialog.alert(result.message);

+ 1 - 1
src/main/webapp/WEB-INF/views/mob/goods/GoodsDetailFormMob.html

@@ -1293,7 +1293,7 @@
 													
 													
 													window.open('about:blank', 'popupView');
 													window.open('about:blank', 'popupView');
 													document.nPayWishForm.target = 'popupView';
 													document.nPayWishForm.target = 'popupView';
-													document.nPayWishForm.action = result.action;
+													document.nPayWishForm.action = result.actionMobile;
 													document.nPayWishForm.submit();
 													document.nPayWishForm.submit();
 												} else {
 												} else {
 													mcxDialog.alert(result.message);
 													mcxDialog.alert(result.message);