feat(can): 사용 하지 않는 price 값 제거
feat(webview): payverse:// 스킴은 앱이 있으면 앱을 실행하도록 처리
This commit is contained in:
@@ -16,8 +16,6 @@ data class CanResponse(
|
|||||||
val can: Int,
|
val can: Int,
|
||||||
@SerializedName("rewardCan")
|
@SerializedName("rewardCan")
|
||||||
val rewardCan: Int,
|
val rewardCan: Int,
|
||||||
@SerializedName("price")
|
|
||||||
val price: Int,
|
|
||||||
@SerializedName("currency")
|
@SerializedName("currency")
|
||||||
val currency: String,
|
val currency: String,
|
||||||
@SerializedName("priceStr")
|
@SerializedName("priceStr")
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ class CanPaymentActivity : BaseActivity<ActivityCanPaymentBinding>(
|
|||||||
.setApplicationId(BuildConfig.BOOTPAY_APP_HECTO_ID)
|
.setApplicationId(BuildConfig.BOOTPAY_APP_HECTO_ID)
|
||||||
.setOrderId("$chargeId")
|
.setOrderId("$chargeId")
|
||||||
.setOrderName(canResponse!!.title)
|
.setOrderName(canResponse!!.title)
|
||||||
.setPrice(canResponse!!.price.toDouble())
|
.setPrice(canResponse!!.priceStr.toDouble())
|
||||||
.setTaxFree(0.toDouble())
|
.setTaxFree(0.toDouble())
|
||||||
.setPg(
|
.setPg(
|
||||||
if (isKakao) {
|
if (isKakao) {
|
||||||
@@ -315,6 +315,14 @@ class CanPaymentActivity : BaseActivity<ActivityCanPaymentBinding>(
|
|||||||
startActivity(Intent(Intent.ACTION_VIEW, url.toUri()))
|
startActivity(Intent(Intent.ACTION_VIEW, url.toUri()))
|
||||||
return true
|
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)
|
return BootpayUrlHelper.shouldOverrideUrlLoading(view, url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user