# Android 인앱결제 실패 관련

**URL:** <https://techchat-apps-in-toss.toss.im/t/android/526>\
**Category:** 개발\
**Tags:** webview, sdk\
**Created:** [9월 26, 2025, 3:02오전 UTC](https://techchat-apps-in-toss.toss.im/t/android/526 "2025-09-26T03:02:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Drew](https://techchat-apps-in-toss.toss.im/u/Drew)\
**Post date:** [9월 26, 2025, 3:02오전 UTC](https://techchat-apps-in-toss.toss.im/t/android/526/1 "2025-09-26T03:02:32Z")

</div>

android 환경에서 인앱결제 실패가 발생하여 문의드립니다.

샌드박스 환경에선 정상적으로 결제가 완료되지만 실제 기기에서 테스트 시 다음과 같이 SDK응답을 웹뷰로 받는 과정에서 실패하는 것으로 보입니다.

- orderId: **45b397bb-83e5-43b4-8731-2811e9f61260 (콘솔 결제 성공)**
- **결제일시: 2025.09.26. 11:55**

{  
“consumeResIsNull”: true,  
“orderId”: null,  
“serverError”: “Cannot convert argument of type class kotlin.Unit”,  
“paymentSuccess”: false,  
“serverResponseType”: “error”,  
“serverResponseValue”: “Cannot convert argument of type class kotlin.Unit”,  
“mutationStatus”: “pending”,  
“mutationRetryCount”: 0,  
“rawServerResponse”: “Error: Cannot convert argument of type class kotlin.Unit\n at promiseMethodWrapper (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:439083)\n at processProductGrant (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:71509)\n at apply (native)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:222261)\n at call (native)\n at step (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:38728)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:37839)\n at asyncGeneratorStep (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:36048)\n at \_next (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:36321)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:36272)\n at tryCallTwo (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:452200)\n at doResolve (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:453559)\n at Promise2 (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:452306)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:36193)\n at apply (native)\n at wrappedFunc2 (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:222302)\n at apply (native)\n at methodHandler (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:221964)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:223628)\n at call (native)\n at step (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:38728)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:37839)\n at asyncGeneratorStep (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:36048)\n at \_next (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:36321)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:36272)\n at tryCallTwo (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:452200)\n at doResolve (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:453559)\n at Promise2 (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:452306)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:36193)\n at apply (native)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/vigloo.hbc:1:224039)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:1580277)\n at apply (native)\n at \_\_callFunction (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:437321)\n at anonymous (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:435777)\n at \_\_guard (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:436716)\n at callFunctionReturnFlushedQueue (address at /data/user/0/viva.republica.toss/cache/app\_in\_toss\_cache/shared.hbc:1:435735)”  
}

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/toss/original/1X/e752d212f9fe0433275e1be1afdf6f97365c9da6.jpeg)

환경

- 웹뷰 SDK “@apps-in-toss/web-framework”: “1.1.3”
- 기기: 갤럭시 폴드 7 (SM-F966N)
- 토스 앱 버전: 5.230.0

---

<div class="post-metadata">

**Author:** ![Drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Drew](https://techchat-apps-in-toss.toss.im/u/Drew)\
**Post date:** [9월 26, 2025, 3:28오전 UTC](https://techchat-apps-in-toss.toss.im/t/android/526/2 "2025-09-26T03:28:57Z")

</div>

```auto
메시지 Cannot convert argument of type class kotlin.Unit 는 RN(Android)에서 Kotlin의 Unit 값을 JS로 넘기려 할 때 발생합니다.

- JS(WebView→RN)에서 어떤 네이티브 메서드를 호출했고(스택에 promiseMethodWrapper), 
- Kotlin 모듈이 promise.resolve(Unit) 혹은 emit("Event", Unit) 같은 식으로 Unit을 JS로 전달하려 해서 변환에 실패했습니다.
(JS로 보낼 수 있는 건 null/Boolean/Number/String/WritableMap/WritableArray 뿐)

```

로그를 기반으로 GPT로 확인해보니 네이티브(Android) 브리지 쪽 에러가 의심됩니다.

---

<div class="post-metadata">

**Author:** ![seonjeong](https://yyz1.discourse-cdn.com/flex007/user_avatar/techchat-apps-in-toss.toss.im/seonjeong/32/594_2.png) [@seonjeong](https://techchat-apps-in-toss.toss.im/u/seonjeong)\
**Post date:** [9월 26, 2025, 3:44오전 UTC](https://techchat-apps-in-toss.toss.im/t/android/526/3 "2025-09-26T03:44:28Z")

</div>

샌드박스에서는 mock 데이터가 내려가고 있고 무조건 정상 승인 처리를 내려드리고 있어요.

출시하기 QR코드를 통해 실제 테스트가 필요합니다.

확인해볼게요.

---

<div class="post-metadata">

**Author:** ![Dylan](https://yyz1.discourse-cdn.com/flex007/user_avatar/techchat-apps-in-toss.toss.im/dylan/32/597_2.png) [@Dylan](https://techchat-apps-in-toss.toss.im/u/Dylan)\
**Post date:** [9월 26, 2025, 5:41오전 UTC](https://techchat-apps-in-toss.toss.im/t/android/526/4 "2025-09-26T05:41:18Z")

</div>

안녕하세요 🙂  
QR로 테스트하신거 맞으실까요 ? 정상적으로 주문 \> 결제 플로우로 가다 결제 마지막에 에러 응답이 오신건가요 ?!

---

<div class="post-metadata">

**Author:** ![Drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Drew](https://techchat-apps-in-toss.toss.im/u/Drew)\
**Post date:** [9월 26, 2025, 5:52오전 UTC](https://techchat-apps-in-toss.toss.im/t/android/526/5 "2025-09-26T05:52:34Z")

</div>

네 맞습니다. QR로 테스트 진행하였고 정상 결제 완료되었다고 콘솔에 표시되지만 기기에선 에러 응답이 내려옵니다.

---

<div class="post-metadata">

**Author:** ![Dylan](https://yyz1.discourse-cdn.com/flex007/user_avatar/techchat-apps-in-toss.toss.im/dylan/32/597_2.png) [@Dylan](https://techchat-apps-in-toss.toss.im/u/Dylan)\
**Post date:** [9월 29, 2025, 1:32오전 UTC](https://techchat-apps-in-toss.toss.im/t/android/526/6 "2025-09-29T01:32:44Z")

</div>

안녕하세요 🙂  
이 이슈 해결되었습니다. 토스앱 업데이트 후 테스트 부탁드려요 🙇‍♂️

---

<div class="post-metadata">

**Author:** ![Drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Drew](https://techchat-apps-in-toss.toss.im/u/Drew)\
**Post date:** [9월 29, 2025, 3:27오전 UTC](https://techchat-apps-in-toss.toss.im/t/android/526/7 "2025-09-29T03:27:46Z")

</div>

감사합니다. 업데이트 후 정상 동작 확인되었습니다. 🫡
