feat(can): 사용 하지 않는 price 값 제거

feat(webview): payverse:// 스킴은 앱이 있으면 앱을 실행하도록 처리
This commit is contained in:
2025-10-03 00:04:30 +09:00
parent 21f57444c8
commit 5bc2b385fa
2 changed files with 9 additions and 3 deletions

View File

@@ -16,8 +16,6 @@ data class CanResponse(
val can: Int,
@SerializedName("rewardCan")
val rewardCan: Int,
@SerializedName("price")
val price: Int,
@SerializedName("currency")
val currency: String,
@SerializedName("priceStr")

View File

@@ -203,7 +203,7 @@ class CanPaymentActivity : BaseActivity<ActivityCanPaymentBinding>(
.setApplicationId(BuildConfig.BOOTPAY_APP_HECTO_ID)
.setOrderId("$chargeId")
.setOrderName(canResponse!!.title)
.setPrice(canResponse!!.price.toDouble())
.setPrice(canResponse!!.priceStr.toDouble())
.setTaxFree(0.toDouble())
.setPg(
if (isKakao) {
@@ -315,6 +315,14 @@ class CanPaymentActivity : BaseActivity<ActivityCanPaymentBinding>(
startActivity(Intent(Intent.ACTION_VIEW, url.toUri()))
return true
}
if (url.startsWith("payverse://")) {
val intent = Intent(Intent.ACTION_VIEW, url.toUri())
if (intent.resolveActivity(packageManager) != null) {
startActivity(intent)
}
return true
}
return BootpayUrlHelper.shouldOverrideUrlLoading(view, url)
}
}