Issue with IAP in LAT (In App Purchases, Live App Testing) - Receipt id is null

Hi Team,

We are currently facing an issue with Kepler IAP in LAT. Specifically, we are not receiving the receipt ID—it returns null. However, in debug mode (using the IAP Tester app mode), we are able to retrieve the receipt ID successfully.

We have followed all the steps mentioned in the official documentation for testing the IAP in LAT:

We’ve also ensured that:

  • All necessary packages are included in package.json
  • Relevant modules are added in manifest.toml
  • The debug configuration folder has been removed

We have launched the IAP LAT app and added an alert to capture the response from the purchasing service event. The response we receive is as follows:

{  "receipt": null,  "requestId": { "requestIdStr": "02659d7f-6aea-4e52-a83b-d8bfb08e3da0" },  "responseCode": 4,  "userData": {    "userId": "nolQsdVLPldDapotqphi-Zd0tnRFzyaaR3UCMeq-ZdQ=",    "marketplace": "US",    "lwaConsentStatus": 1  }} 

We will share the LAT IAP configured .vpkg file in the Slack. Please let us know if you need any additional details.

Regards,
Vittal Maradi

Hi @vittalmaradi ,

Could you please provide the below details:

System Information
Please run kepler platform doctor and paste the result here (if applicable)

<!-- Output of kepler platform doctor -->

Logs or crash report:

For better readability, please provide the logs as file attachments rather than inline text.
        App/Device Logs: https://developer.amazon.com/docs/kepler-tv/ks-logs.html
        Crash Logs: https://developer.amazon.com/docs/kepler-tv/loggingctl.html
        Crash Report: https://developer.amazon.com/docs/kepler-tv/ks-crash-report.html
        For issues with Kepler Studio Extension, please share log files from below folders:

         ~/.vscode/extensions/amazon.kepler-extension-<version>/ExtensionLogs
         ~/.vscode/extensions/amazon.kepler-ui-extension-<version>/ExtensionLogs

Bug Severity
Select one that applies

  • Impacts operation of app
  • Blocks current development
  • Improvement suggestion
  • Other

2. Steps to Reproduce

  • 1/ [List the steps for reproducing the bug]
  • 2/ [Any specific component or method call in React Native triggering the issue]
  • 10/

3. Observed Behavior

Explain what actually happened, noting any discrepancies or malfunctions.

<!-- Answer here -->

4. Expected Behavior

Describe what you expected the SDK to do under normal operation.

<!-- Answer here --> 

4.a Possible Root Cause & Temporary Workaround

Fill out anything you have tried. If you don’t know, N/A is acceptable

<!-- Answer here -->

5. Environment

Please fill out the fields related to your bug below:

Please fill out

  • SDK Version: [e.g., 0.13]
  • App State: [Foreground/Background]

Prefilled
(no action required)

  • React Native Version: 0.72.0
  • React Version: 18.2.0
  • Platform: TV
  • Device Model(s): [Leave blank]

If it is a player issue, please share the following details in addition:

  • Player SDK: [Bitmovin, Shaka, ...]
  • Player SDK Version: [e.g. 1.23]
    • Audio Codecs: [AAC, ...]
    • Video Codecs: [h.264, mp4]
    • Manifest Types: [m3u8, dash, etc ..]

6. Example Code Snippet / Screenshots / Screengrabs

Include any relevant code or component setup in React Native that can help reproduce the bug.

import { ExampleComponent } from 'custom-sdk';

<ExampleComponent config={{ key: 'value' }} />

And please share the vpkg with your Amazon POC.

Thanks,
Rohit

Hi Rohit
System Information

Checking installation status at /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6A different location can be specified via environment variable KEPLER_SDK_PATH.✔ System: Ubuntu 20.04.6 LTS  Architecture: x86_64✔ Rosetta is Mac-only✔ username and token found in knrc file✔ git found in the path✔ curl found in the path✔ Node.js binary compiled for x86_64✔ VSCode found in the path✔ Skipping✔ /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6 exists; /home/mohammadirbaaz/.kepler/kntools exists✔ licenses and legal notices found in /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6✔ Installed system packages:  build-essential 12.8ubuntu1.1  cpu-checker 0.7-1.1  libbz2-dev:amd64 1.0.8-2  libc6-i386 2.31-0ubuntu9.17  libncurses5-dev:amd64 6.2-0ubuntu2.1  libncursesw5-dev:amd64 6.2-0ubuntu2.1  libpulse-dev:amd64 1:13.99.1-1ubuntu3.13  libreadline-dev:amd64 8.0-4  libsdl2-2.0-0:amd64 2.0.10+dfsg1-3  libsdl2-image-2.0-0:amd64 2.0.5+dfsg1-2  libsdl2-mixer-2.0-0:amd64 2.0.4+dfsg1-2build1  libsqlite3-dev:amd64 3.31.1-4ubuntu0.7  libssl-dev:amd64 1.1.1f-1ubuntu2.24  libusb-1.0-0-dev:amd64 2:1.0.23-2build1  libusbredirparser-dev:amd64 0.8.0-1ubuntu0.1  libvirt0:amd64 6.0.0-0ubuntu8.20  libvirt-clients 6.0.0-0ubuntu8.20  libvirt-daemon 6.0.0-0ubuntu8.20  openssh-client 1:8.2p1-4ubuntu0.13  snapd 2.66.1+20.04  snapd 2.66.1+20.04  ssh 1:8.2p1-4ubuntu0.13  tk-dev:amd64 8.6.9+1  autossh 1.4g-1  tmux 3.0a-2ubuntu0.4  unzip 6.0-25ubuntu1.2  virt-manager 1:2.2.1-3ubuntu2.2  qemu-kvm 1:4.2-3ubuntu6.30✔ pyenv version 2.5.7 installed✔ python version 3.12.6 installed✔ pip version 24.2 installed✔ pyenv virtualenv version 1.2.4 installed✔ virtualenv 'kepler-0.19.6' created✔ Installed Python packages:   conan 2.0.17  docopt 0.6.2  flatbuffers 23.5.26  langcodes 3.3.0  patchelf 0.17.2.2  psutil 7.0.0  PyYAML 6.0.1  tomli 2.0.1  wheel 0.41.3  zstandard 0.22.0✔ debugger server found✔ simulator exists at /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/simulator/tools/runsimulator✔ vda version 2.1.0 installed✔ Vega Packaging Tools vpt binary exists in /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/vegapackagingtool/bin/vpt✔ Hermes Compiler binary exists at /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/hermes/072/bin/hermesc✔ kvdi skipped since simulator is installed✔ kvd-tv skipped since simulator is installed✔ Heaptrack Tools binaries exist in /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/heaptrack_prebuilts✔ Kepler Debugging Tools binaries exist in /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/kepler_debugging_tools/tools/scripts✔ Kepler Manifest Module Remapper amzn-kepler-manifest-module-remapper binary exists in /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/kepler_manifest_module_remapper/bin/amzn-kepler-manifest-module-remapper✔ CPU profiling tool for performance analysis binaries exist in /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/simpleperf_prebuilts✔ Corretto JDK version 11.0.20.8.1 installed✔ Kepler Performance CLI binaries exist in /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/kepler_perf_cli✔ Kepler Studio extensions installed in VSCode✔ environment setup file exists at /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/environment-setup-sdk.sh and has correct contents✔ /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/environment-setup-sdk.sh is sourced from /home/mohammadirbaaz/.bashrc✔ Telemetry Service exists at /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/kepler-telemetry/telemetry. Configuration file exists at /home/mohammadirbaaz/.kepler/kntools/sdk/0.19.6/kepler-telemetry/config.json. Collection of anonymous usage data is enabledKepler CLI prerequisites are all correctly installed. 

Logs or crash report:

We cant provide crahs logs, as this is not a crash and also not sure how to take logs for LAT app, as we cannot take logs for LAT app

Bug Severity

  • Impacts operation of app
  • Blocks current development

2. Steps to Reproduce

1.
Open the app. If it is already signed in, first sign out. Relaunch the app.
If the app is not logged in but shows an incorrect UI, restart the device and relaunch the app again.
You should now land on the intro page with two buttons:

  1. Get Free Trial
  2. Sign In

2.
Click on the Get Free Trial button. This will navigate you to the Select Plan page.
Choose a plan, and you will be redirected to the Confirm Plan page.
Check the checkbox and click on Confirm.
This will initiate the Amazon Kepler IAP (In-App Purchase) UI.

3. Observed Behaviour

Explain what actually happened, noting any discrepancies or malfunctions.

After succesful transaction , we are not receiving the receipt id.

4. Expected Behaviour

Describe what you expected the SDK to do under normal operation.

After successful transaction , we should receive the receipt id.

4.a Possible Root Cause & Temporary Workaround

Fill out anything you have tried. If you don’t know, N/A is acceptable

N/A

5. Environment

Please fill out the fields related to your bug below:

Please fill out

  • SDK Version: 0.19
  • App State: [Foreground/Background]

Prefilled
(no action required)

  • React Native Version: 0.72.0
  • React Version: 18.2.0
  • Platform: TV
  • Device Model(s): [Leave blank]

HI @Amz_Rsk / @Sanaa_Fidahussain
we just published the LAT version of our kepler app and still we are not getting the Receipt. please find the video for the same. since its a LAT build we do not have any device logs. if you would like to test we will send out LAT invites for the emails if provided.
the VPKG is already shared via slack.
and the device details are:
NAME=“OS”
OE_VERSION=“4.0.0”
OS_MAJOR_VERSION=“1”
OS_MINOR_VERSION=“1”
RELEASE_ID=“2”
OS_VERSION=“1.1”
BRANCH_CODE=“VegaMainlineTvIntegration”
BUILD_DESC=“OS 1.1 (VegaMainlineTvIntegration/4344)”
BUILD_FINGERPRINT=“4.0.98208.0(3072cab629675a74)/4344N:user-external/release-keys”
BUILD_VARIANT=“user-external”
BUILD_TAGS=“release-keys”
BUILD_DATE=“Thu May 08 00:22:09 UTC 2025”
BUILD_TIMESTAMP=“1746663729”
VERSION_NUMBER=“201010434450”
https://yupptv-my.sharepoint.com/:v:/p/gayathrik/EWfWtBKFvlxIkQTeSnOloEYBYM1Bu4cf_Ht9uqUmlNBiTw

Hi @vittalmaradi,

Our team investigated and saw that the AppstoreAuthenticationKey.pem key is mismatching between your Fire OS and Kepler app. The AppstoreAuthenticationKey.pem key does not differ across OS versions. Could the team please use the right key for testing the changes? Let us know if you still face issues after. Thanks!

Hi @vittalmaradi,

Just following up here to see if you got to try the above suggestion?

HI @Justin we rechecked and the file is right. still we are not receiving the receipt its null.

same with IAP app tester

Hi @YuppTV, could you confirm that this issue is only happening in LAT (as the original post suggests)?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.