diff --git a/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt b/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt index 62667bd0..87560b28 100644 --- a/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt +++ b/sdk/src/main/java/co/omise/android/ui/AuthorizingPaymentActivity.kt @@ -305,12 +305,8 @@ class AuthorizingPaymentActivity : AppCompatActivity() { resultCode: Int, data: Intent?, ) { - if (requestCode == REQUEST_EXTERNAL_CODE) { - if (requestCode == REQUEST_EXTERNAL_CODE && isDeepLinkSuccOpened) { - finishActivityWithSuccessful(data) - } - finishActivityWithSuccessful(data) - } + if (requestCode == REQUEST_EXTERNAL_CODE && isDeepLinkSuccOpened) { + finishActivityWithSuccessful(data) } }