Iap DevTest Returns receipt id null and userData null

1. Summary

Iap DevTest Returns receipt id null and userData null

App Name: frndly tv
Bug Severity

  • Impacts operation of app

2. Steps to Reproduce

  1. side loaded app with following commands
    1.vpt pull --signature ./frndlytv_armv7.vpkg existing_digest.sig
    2. vpt sign --resign existing_digest.sig key.pem cert.pem updated_digest.sig
    3.vpt push --signature updated_digest.sig ./frndlytv_armv7.vpkg
    4. kepler device install-app --device G4xxxxxxz --packagePath frndlytv_armv7.vpkg

3. Observed Behavior

trying to perform the payments but reciept id and userData null showing ,

4. Expected Behavior

payments should work with IAP DevTest

5. Logs

Jan 19 10:20:16.465657 firestick-463f11b5245b6623 local0.info com.tvapp.frndlytv:pkg[16595]: 3449343573 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] [AmazonIAPSDK] purchase end time : 1768818016462
Jan 19 10:20:16.465781 firestick-463f11b5245b6623 local0.info com.tvapp.frndlytv:pkg[16595]: 3449343573 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] [AmazonIAPSDK] purchase total time : NaN ms
Jan 19 10:20:16.465898 firestick-463f11b5245b6623 local0.info servicergrd[804]: 2846506616 INFO com.amazon.appfwk.servicergrd: binder_request{cid=“dd9b1b24f2268b0d”}: processed request, request=“unbind”, service=“IpcHandle { handle: ipcn_handle { _internal: 0x247, __internal: 0x0 }, on_death: false }”, client=Credentials { pid: 16595, uid: 5000, gid: 0, security_ctx: “User::Pkg::18b4adae-6353-4481-bffb-b6ea42bdf007” }, duration=488.308µs
Jan 19 10:20:16.466058 firestick-463f11b5245b6623 local0.info com.tvapp.frndlytv:pkg[16595]: 3066802897 INFO com.amazon.kepler.appstore.iap.purchase.core: IPC disconnected successfully
Jan 19 10:20:16.466172 firestick-463f11b5245b6623 local0.info lcm_service[1013]: 1013 I lcm-server:[Lcm.cpp:6762] Service Update - com.amazon.iap.core.service(pid=20160), client com.tvapp.frndlytv(pid=16595): 3
Jan 19 10:20:16.466323 firestick-463f11b5245b6623 local0.info lcm_service[1013]: 1013 I lcm-server:[Lcm.cpp:6728] Candidate for termination - com.amazon.iap.core.service 20160
Jan 19 10:20:16.466447 firestick-463f11b5245b6623 local0.info com.tvapp.frndlytv:pkg[16595]: 3449343573 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] ‘[INFO] 2026-01-19T10:20:16.463Z - IAP purchase initiated successfully for SKU: ftv-classic-monthly-freetrial’, { receipt: null,
requestId: { requestIdStr: ‘6a92d5ad-421f-4b92-80e7-9f033c8f0b95’ },
responseCode: 4,
userData: null }
Jan 19 10:20:16.466562 firestick-463f11b5245b6623 local0.info lcm_service[1013]: 1235 I resmgr-systemd-container:[SystemdContainer.cpp:1710] Configure container(pid(16595):id(317):state(1):type(0):connect(true))
Jan 19 10:20:16.466676 firestick-463f11b5245b6623 local0.info lcm_service[1013]: 1235 I resmgr-app-registry:[AppResourceRegistry.cpp:260] dependent services: FG state 1 (317: {829, 1011, 896, 1013, 1014, 1087, 1204, 1205, 1242, 1459, 1618})
Jan 19 10:20:16.466791 firestick-463f11b5245b6623 local0.info com.tvapp.frndlytv:pkg[16595]: 3449343573 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] ‘result’, { receipt: null,
requestId: { requestIdStr: ‘6a92d5ad-421f-4b92-80e7-9f033c8f0b95’ },
responseCode: 4,
userData: null }

Jan 19 10:20:16.466907 firestick-463f11b5245b6623 local0.info lcm_service[1013]: 1235 I resmgr-monitor-procs:[ProcessUtil.cpp:1676] Get memory policy 0 for 16595

6. Environment

Please fill out the fields related to your bug below:

  • SDK Version: 0.20.3719
  • 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/4454)”
    BUILD_FINGERPRINT=“4.0.198430.0(3072cab629675a74)/4454N:user-external/release-keys”
    BUILD_VARIANT=“user-external”
    BUILD_TAGS=“release-keys”
    BUILD_DATE=“Sat Dec 20 04:05:59 UTC 2025”
    BUILD_TIMESTAMP=“1766203559”
    VERSION_NUMBER=“1401010445450”

Hi @YuppTV

Thanks for reporting this issue.
Can you please share the following information for us to debug further ?

  1. Full device logs when the issue is seen
  2. Are you facing same issue with LAT?

Warm regards,
Ivy

Hi Ivy, I have included full device logs in the ticket.

Hi @Ivy_Mahajan , any update?

Hi @YuppTV

We have been working on this issue.

So far, we could check that validations on device are failing.
We are checking from server side logs whether this was a signature mismatch case and also if the IAPs are published properly for this app.

I will update you with the next steps and resolution ASAP.
In the meantime, can you please mention the testers Email and ECID?

Warm regards,
Ivy

Hi Amazon Team,

We are encountering the same error mentioned above.

We are using the following commands:

vega exec vpt pull --signature ./foxonekepler_armv7.vpkg existing_digest.sig
vega exec vpt sign --resign existing_digest.sig key.pem cert.pem updated_digest.sig
vega exec vpt push --signature updated_digest.sig ./foxonekepler_armv7.vpkg
vega device install-app --packagePath ./foxonekepler_armv7.vpkg

Additionally, when attempting to fetch the product details, we receive the following response:
{"productData": null, "responseCode": "unavailableSkus", "unavailableSkus": null}

Could you please assist us in resolving this issue?

Hi @Himanshu

The issue is likely caused by re-signing your VPKG. When you re-sign with a different certificate, Amazon Appstore can’t recognize your app for IAP.

If key.pem and cert.pem are different from your original production certificate registered in Developer Console, the Appstore won’t recognize your app for IAP.

Since this seems like a different issue, would you mind creating a new topic so that we can track it better? You can update your issue and error screenshots along with:

  1. Is key.pem/cert.pem the same certificate used for your published app?
  2. What error appears in device logs during IAP request?

Let me know and we’ll get this resolved!

Warm regards,
Ivy

Hi @Ivy_Mahajan ,
After updating to SDK version 0.22 and migrating npm from @amzn to @amazon-device. the issue has been resolved and IAP is now working as expected in IapDevTest.
Thank you.

1 Like

Hi @Ivy_Mahajan ,
Thank you for your response.

  1. Yes, our cert.pem is the same certificate that is configured in the Amazon Appstore Developer Console under the DevTest IAP certificate section.

  2. When calling getProducts, we are receiving the following response:
    Product response: {“productData”: null, “responseCode”: 3, “unavailableSkus”: null}

Looking forward to your guidance

1 Like

Thank you @YuppTV for letting us know. We will close this topic. Happy developing !

Warm regadrs,
Ivy

Understood @Himanshu .

Thank you for sharing the details. I would request you to kindly create a new topic so that I can help you better.

Note: The key issue is likely that you registered the app certificate for DevTest but didn’t register the actual IAP items/SKUs.
The responseCode: 3 specifically means the system doesn’t recognize those SKUs in the DevTest environment.

Warm regards,
Ivy