Skip to content

Commit

Permalink
fix : onReceivedError failureFinish 삭제
Browse files Browse the repository at this point in the history
현대카드 -> 일반결제에서 ERR_CONNECTION_REFUSED 발생함
warning 로그로 대체
  • Loading branch information
kjh5833 committed Mar 25, 2021
1 parent 8fb9231 commit 8e9caad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ dependencies {
implementation "org.koin:koin-androidx-ext:$koin_version"

implementation project(':sdk')
// implementation 'com.github.iamport:iamport-android:0.0.6-dev04'
// implementation 'com.github.iamport:iamport-android:v0.0.6-dev15'
}

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.iamport.sdk.domain.di.IamportKoinComponent
import com.iamport.sdk.domain.utils.CONST
import com.iamport.sdk.domain.utils.Event
import com.iamport.sdk.domain.utils.WebViewLiveDataEventBus
import com.orhanobut.logger.Logger
import com.orhanobut.logger.Logger.d
import org.koin.core.component.KoinApiExtension
import org.koin.core.component.inject
Expand Down Expand Up @@ -51,9 +52,10 @@ open class BaseWebViewStrategy : WebViewClient(), IStrategy, IamportKoinComponen

@RequiresApi(Build.VERSION_CODES.M)
override fun onReceivedError(view: WebView?, request: WebResourceRequest?, error: WebResourceError?) {
Logger.w("onReceivedError code ${error?.errorCode}, description ${error?.description}")
super.onReceivedError(view, request, error)
// 에러 발생시, 결제 취소 페이지 이동
failureFinish(payment, msg = "code ${error?.errorCode}, description ${error?.description}")
// failureFinish(payment, msg = "code ${error?.errorCode}, description ${error?.description}")
}


Expand Down

0 comments on commit 8e9caad

Please sign in to comment.