# IAP response code 4 and receipt null with Amazon Appstore DevTest

**URL:** <https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995>\
**Category:** Bug Reports\
**Created:** [March 27, 2026, 3:07pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995 "2026-03-27T15:07:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dyang-fubo](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dyang-fubo](https://community.amazondeveloper.com/u/dyang-fubo)\
**Post date:** [March 27, 2026, 3:07pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/1 "2026-03-27T15:07:50Z")

</div>

# 👉 Bug Description

* * *

## 1. Summary

I’m trying to test IAP with Amazon Appstore DevTest.

When I’m trying to purchase an item, I have the expected screens that takes me through the purchase flow. But in the end, when redirected to my app, I have no receipt and return code stating “failed”.

**App Name** : Molotov UAT  
**App Link on Amazon Appstore** : [https://www.amazon.com/gp/product/B0FPMQL765](https://www.amazon.com/gp/product/B0FPMQL765)

**Bug Severity**  
Select one that applies

- Impacts operation of app
- Blocks current development
- Improvement suggestion
- Issue with documentation (If selected, please share the doc link and describe the issue)
- Other

## 2. Steps to Reproduce

1. Build the app in debug
2. Resign the app with the certificate setup for Amazon Appstore DevTest
3. Purchase an item

## 3. Observed Behavior

IAP flow ends with success but returns a failure response and no receipt.

```auto
{
  "receipt": null,
  "requestId": {
    "requestIdStr": "580ac8c4-66b9-4c46-977c-23cf04bacd5e"
  },
  "responseCode": 4,
  "userData": {
    "userId": "5dccA8n2qgKSeTWsKSfpkqKTdrVUAbURmR5gYNeC8qA=",
    "marketplace": "FR",
    "lwaConsentStatus": 1,
    "userProfileAccessConsentStatus": 1
  }
}

```

## 4. Expected Behavior

Response Code should be 0 and receipt not null.

### 4.a Possible Root Cause & Temporary Workaround

N/A

## 5. Logs or crash report

N/A

## 6. Environment

- **SDK Version:** 0.22.5875

- **App State:** Foreground

- **OS Information:**

```auto
NAME="OS"
OE_VERSION="4.0.0"
OS_MAJOR_VERSION="1"
OS_MINOR_VERSION="1"
RELEASE_ID="14"
OS_VERSION="1.1"
BRANCH_CODE="TV Ship day60"
BUILD_DESC="OS 1.1 (TV Ship day60/101)"
BUILD_FINGERPRINT="4.0.249302.0(3072cab629675a74)/101N:user/release-keys"
BUILD_VARIANT="user"
BUILD_TAGS="release-keys"
BUILD_DATE="Sat Mar 14 22:24:12 UTC 2026"
BUILD_TIMESTAMP="1773527052"
VERSION_NUMBER="1401010010120"

```

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [March 27, 2026, 8:44pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/3 "2026-03-27T20:44:19Z")

</div>

Hi @dyang-fubo,

Thank you for the detailed bug report on the IAP response code 4 issue with Amazon Appstore DevTest.

Our team is investigating this issue and will provide an update as soon as we have more information. Could you please share the relevant logs from your app to help us diagnose the issue further?

Thanks for helping us improve the Vega platform.

Warm regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [April 10, 2026, 7:50pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/5 "2026-04-10T19:50:48Z")

</div>

Hi @dyang-fubo,

Could you please provide the relevant device logs (journalctl/syslog) that cover the timeframe when you encountered this issue?

Additionally, it would be helpful if you could share:

- The exact timestamp when the purchase failure occurred

- Any app-level logs showing the IAP transaction flow

This information will help our team diagnose why the purchase flow is completing successfully but returning a failure response with no receipt.

Thanks for your patience as we work to resolve this.

Best regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![dyang-fubo](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dyang-fubo](https://community.amazondeveloper.com/u/dyang-fubo)\
**Post date:** [April 14, 2026, 9:33am UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/6 "2026-04-14T09:33:11Z")

</div>

Here are our app logs showing the IAP transaction flow.

```auto
 (NOBRIDGE) DEBUG 🐞 IAPManager: Purchasing AMAZON_UAT_2_KITCHEN_MANIA_TBCC_7J_1_99_TERMS
 (NOBRIDGE) DEBUG 🐞 IAPManager: Handling Purchase response... {
  "receipt": null,
  "requestId": {
    "requestIdStr": "f0ccf0e9-ae09-4599-be88-40dfc7f89e36"
  },
  "responseCode": 4,
  "userData": {
    "userId": "5dccA8n2qgKSeTWsKSfpkqKTdrVUAbURmR5gYNeC8qA=",
    "marketplace": "FR",
    "lwaConsentStatus": 1,
    "userProfileAccessConsentStatus": 1
  }
}
 (NOBRIDGE) DEBUG 🐞 IAPManager: Could not purchase AMAZON_UAT_2_KITCHEN_MANIA_TBCC_7J_1_99_TERMS: Purchase failed
 (NOBRIDGE) WARN ⚠️ 1776158898148 IAB: Error purchasing product Purchase failed

```

The exact timestamp after the failure is logged as : 1776158898148 (Tue Apr 14 2026 11:28:18 GMT+0200 (Central European Summer Time)).

To add more info about the issue, I’m receiving an email confirmation from Amazon about the subscription, so it looks like the purchase is ok on Amazon Appstore DevTest… But I’m not getting a successful response status code or any receipt.

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [April 14, 2026, 4:45pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/7 "2026-04-14T16:45:08Z")

</div>

Hi @dyang-fubo,

Thank you for sharing the detailed app logs and timestamp information. I’ve passed these details on to our team for investigation.

Could you please provide the complete device logs (journalctl/syslog) that cover the timeframe around **04/14/2026 11:28:18 GMT+0200**? This will help us diagnose why the purchase is completing on Amazon Appstore DevTest but returning response code 4 with a null receipt.

Thanks for your patience as we work to resolve this.

Best regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![dyang-fubo](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dyang-fubo](https://community.amazondeveloper.com/u/dyang-fubo)\
**Post date:** [April 15, 2026, 12:45pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/8 "2026-04-15T12:45:59Z")

</div>

Hello @amen

I don’t have access to those logs anymore, but I reproduced the issue. Here are some fresh logs from the app and from the device.

Item SKU : AMAZON\_UAT\_2\_EXPLORE\_3\_99\_TERMS  
Purchase initiated at timestamp 1776256742974 : ‘Wed Apr 15 2026 14:39:02 GMT+0200 (Central European Summer Time)’  
Purchase failure response at timestamp 1776256759399 : ‘Wed Apr 15 2026 14:39:19 GMT+0200 (Central European Summer Time)’

[app\_logs.txt](https://community.amazondeveloper.com/uploads/short-url/l8f45fz8MkxOmbP7gugMjn6bUtu.txt) (910 Bytes)  
[device\_logs.txt](https://community.amazondeveloper.com/uploads/short-url/gEFqz0t7M9iFH72ad2TYAITufHn.txt) (400.7 KB)

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [April 16, 2026, 6:13pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/9 "2026-04-16T18:13:11Z")

</div>

Hi @dyang-fubo,

Thanks for sharing the fresh logs. Our investigation confirms the subscription was successful on the server side - the issue appears to be on the client/SDK side, which is why the receipt is coming back as null.

The attached logs are incomplete and don’t include the full IAP process flow. Could you please share the **complete logs** in fresh terminal session covering the entire purchase journey?

Thanks for your patience.

Best regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![dyang-fubo](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dyang-fubo](https://community.amazondeveloper.com/u/dyang-fubo)\
**Post date:** [April 17, 2026, 12:01pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/10 "2026-04-17T12:01:18Z")

</div>

Please let me know what you expect as “complete logs”.

I used `loggingctl log -f` and shared the logs before and after the IAP purchase.

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [April 20, 2026, 5:38pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/11 "2026-04-20T17:38:19Z")

</div>

Hi @dyang-fubo,

Thanks for the clarification. By “complete logs,” we mean logs captured from a fresh terminal session (not from an IDE terminal or iTerm) that cover the entire purchase journey from start to finish - including initialization, the purchase attempt, and the response.

Using `loggingctl log -f` is fine, but please make sure the session is started fresh before initiating the purchase so no log entries are missed.

Best regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![dyang-fubo](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dyang-fubo](https://community.amazondeveloper.com/u/dyang-fubo)\
**Post date:** [April 22, 2026, 1:21pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/12 "2026-04-22T13:21:16Z")

</div>

Hello.

Here a more logs, starting before the app is even launched.

SKU: AMAZON\_UAT\_2\_SOCIETY\_PLUS\_4\_90\_TERMS  
Purchase initiated at 2026-04-22T13:14:18.056Z  
Purchase failure at 2026-04-22T13:14:32.295Z (no receipt id received)

I received an email confirmation that the purchase was successful.

[device\_logs\_20260422.txt](https://community.amazondeveloper.com/uploads/short-url/8NFVOP301xLGlGxA7qZlzr4OoWA.txt) (1.4 MB)  
[app\_logs\_20260422.txt](https://community.amazondeveloper.com/uploads/short-url/qCfqg0aPlXRDwRzZ5vYO9Ytsdeb.txt) (829 Bytes)

 ![Capture d’écran 2026-04-22 à 15.17.49](https://d3mq594dkmpl37.cloudfront.net/original/2X/3/3680c7ce3ecb5f81cbf4faafc8805fb7a32579d8.png)

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [May 21, 2026, 5:50pm UTC](https://community.amazondeveloper.com/t/iap-response-code-4-and-receipt-null-with-amazon-appstore-devtest/27995/14 "2026-05-21T17:50:49Z")

</div>


