feat(can): 사용 하지 않는 price 값 제거
feat(webview): payverse:// 스킴은 앱이 있으면 앱을 실행하도록 처리
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user