Iap devtest payment

1. Summary

We are unable to complete purchases in Amazon IAP DevTest mode. The purchase flow is initiated successfully, but the response returns an invalid result with receipt: null and responseCode: 4.

This issue is blocking current development, as we cannot test IAP flows in DevTest mode.

This problem was previously encountered and resolved after upgrading to SDK version 22, but it has now started occurring again.

App Name: frndly tv

Bug Severity

  • Blocks current development

2. Steps to Reproduce

  1. Launch the app on Vega / Fire TV device
  2. Ensure IAP is configured in DevTest mode
  3. Initiate purchase for SKU: ftv-classic-monthly
  4. Observe logs and purchase response

3. Observed Behavior

  • Purchase flow starts successfully

  • SDK returns invalid response

  • Receipt and user data are null

  • Response code is 4

  • App logs indicate production mode instead of DevTest

Logs:

[INFO] Response received from IAP Service
requestId: 861147c5-b27b-4a60-a29d-ce8407215bd1

[ERROR] Invalid response received from IAP Service

[INFO] IAP config file not found:
Path: /scratch/amazon.config.json
→ App is running in PRODUCTION mode

[INFO] Purchase timing:
total time → NaN ms

Response:
{
  receipt: null,
  requestId: "861147c5-b27b-4a60-a29d-ce8407215bd1",
  responseCode: 4,
  userData: null
}

4. Environment

Please fill out the fields related to your bug below:

  • **SDK Version:**Active SDK Version: 0.22.6150
    Vega CLI Version: 1.2.18

  • App State: [Foreground/Background]

  • OS Information: 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”

Hi @YuppTV,

Thank you for the detailed bug report on IAP devtest payment.

From your logs, the key indicator is:

[INFO] IAP config file not found:
Path: /scratch/amazon.config.json
→ App is running in PRODUCTION mode

This means the DevTest configuration is not being picked up, causing the app to fall back to production mode, which explains the responseCode: 4 and null receipt/userData.

Could you please confirm:

  • Is the amazon.config.json file included in your app package and placed in the correct location?
  • Has anything changed in your build/packaging process since the issue was last resolved with SDK 0.22?
  • Can you share full device logs (journalctl) captured during the purchase attempt so we can investigate further?

Our team is investigating this issue and will provide an update as soon as we have more information.

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya