From e1d42b5495f68e97f2f50bf7323bd3c56131fdbe Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Sat, 29 Jun 2024 18:34:30 +0900 Subject: [PATCH] =?UTF-8?q?PG=20=EC=88=98=EC=A0=95=20-=20=ED=9C=B4?= =?UTF-8?q?=EB=8C=80=ED=8F=B0=20=EA=B2=B0=EC=A0=9C:=20=EC=9B=B0=EC=BB=B4?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EB=A8=BC=EC=B8=A0=20-=20=EB=82=98=EB=A8=B8?= =?UTF-8?q?=EC=A7=80=20:=20=ED=97=A5=ED=86=A0=ED=8C=8C=EC=9D=B4=EB=82=B8?= =?UTF-8?q?=EC=8A=A4(=EC=84=B8=ED=8B=80=EB=B1=85=ED=81=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Debug/Utils/Constants.swift | 1 + .../Sources/MyPage/Can/Payment/CanPgPaymentViewModel.swift | 4 ++-- .../MyPage/Can/Payment/Temp/CanPaymentTempViewModel.swift | 2 +- SodaLive/Sources/Utils/Constants.swift | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/SodaLive/Sources/Debug/Utils/Constants.swift b/SodaLive/Sources/Debug/Utils/Constants.swift index d2b3d9d..42cf4a3 100644 --- a/SodaLive/Sources/Debug/Utils/Constants.swift +++ b/SodaLive/Sources/Debug/Utils/Constants.swift @@ -14,3 +14,4 @@ let AGORA_APP_ID = "b96574e191a9430fa54c605528aa3ef7" let AGORA_APP_CERTIFICATE = "ae18ade3afcf4086bd4397726eb0654c" let BOOTPAY_APP_ID = "6242a7772701800023f68b2f" +let BOOTPAY_APP_HECTO_ID = "667fca5d3bab7404f831c3e5" diff --git a/SodaLive/Sources/MyPage/Can/Payment/CanPgPaymentViewModel.swift b/SodaLive/Sources/MyPage/Can/Payment/CanPgPaymentViewModel.swift index 910e1c4..44c8cb0 100644 --- a/SodaLive/Sources/MyPage/Can/Payment/CanPgPaymentViewModel.swift +++ b/SodaLive/Sources/MyPage/Can/Payment/CanPgPaymentViewModel.swift @@ -50,8 +50,8 @@ final class CanPgPaymentViewModel: ObservableObject { let decoded = try jsonDecoder.decode(ApiResponse.self, from: responseData) if let data = decoded.data, decoded.success { - payload.applicationId = BOOTPAY_APP_ID - payload.pg = "웰컴페이먼츠" + payload.applicationId = paymentMethod == .phone ? BOOTPAY_APP_ID : BOOTPAY_APP_HECTO_ID + payload.pg = paymentMethod == .phone ? "웰컴페이먼츠" : "세틀뱅크" payload.orderId = "\(data.chargeId)" payload.method = paymentMethod!.rawValue diff --git a/SodaLive/Sources/MyPage/Can/Payment/Temp/CanPaymentTempViewModel.swift b/SodaLive/Sources/MyPage/Can/Payment/Temp/CanPaymentTempViewModel.swift index 0e3b813..ada9836 100644 --- a/SodaLive/Sources/MyPage/Can/Payment/Temp/CanPaymentTempViewModel.swift +++ b/SodaLive/Sources/MyPage/Can/Payment/Temp/CanPaymentTempViewModel.swift @@ -54,7 +54,7 @@ final class CanPaymentTempViewModel: ObservableObject { bootUser.userId = "\(UserDefaults.int(forKey: .userId))" bootUser.username = UserDefaults.string(forKey: .nickname) - payload.applicationId = BOOTPAY_APP_ID + payload.applicationId = BOOTPAY_APP_HECTO_ID payload.pg = "세틀뱅크" payload.orderId = "\(data.chargeId)" payload.method = paymentMethod!.rawValue diff --git a/SodaLive/Sources/Utils/Constants.swift b/SodaLive/Sources/Utils/Constants.swift index 7f8949c..7895add 100644 --- a/SodaLive/Sources/Utils/Constants.swift +++ b/SodaLive/Sources/Utils/Constants.swift @@ -14,3 +14,4 @@ let AGORA_APP_ID = "e34e40046e9847baba3adfe2b8ffb4f6" let AGORA_APP_CERTIFICATE = "15cadeea4ba94ff7b091c9a10f4bf4a6" let BOOTPAY_APP_ID = "64c35be1d25985001dc50c88" +let BOOTPAY_APP_HECTO_ID = "664c1707b18b225deca4b42a"