Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Consume fails everytime on Amazon #114

Open
jimitbhalani opened this issue Jun 20, 2016 · 0 comments
Open

Consume fails everytime on Amazon #114

jimitbhalani opened this issue Jun 20, 2016 · 0 comments

Comments

@jimitbhalani
Copy link

jimitbhalani commented Jun 20, 2016

I am able to query and purchase an IAP but then the consumption fails. I am testing with App Tester on amazon

I get the error below "original json invalid" after calling OpenIAB.consumeProduct(..)

Original json is invalid: {"itemType":"inapp","orderId":"","packageName":"","sku":"productexample","purchaseTime":0,"purchaseState":0,"developerPayload":"","token":"q1YqVrJSSi_OKynKLEhNzC4uyc9OzSvOTS3Ozc8vKMnMzzNU0lFKAaoxNDEzMzY3NzM2NjY1AoqVAsVyjD18zCMKClx9M4r83V3ySossdUtzygrzc4uC080KK_1dvHMTM8zNcrxCbYFaSpSsDGoB","originalJson":"","signature":"","appstoreName":"com.amazon.apps","receipt":”"}

I am having multiple other issues like I don't get back orderId or receiptID from queryInventorySuccess callback for the purchase that is already made. I see the valid productId but no orderId even though I see the receiptId on App Tester. What is the difference between Token, ReceiptId and OrderId?

Also what is the difference in using. Could there be a problem here?

<receiver android:name="com.amazon.inapp.purchasing.ResponseReceiver">
        <intent-filter>
            <action
                android:name="com.amazon.inapp.purchasing.NOTIFY"
                android:permission="com.amazon.inapp.purchasing.Permission.NOTIFY"/>
        </intent-filter>
    </receiver>

compared to using

<receiver android:name="com.amazon.device.iap.ResponseReceiver">
        <intent-filter>
            <action
            android:name="com.amazon.inapp.purchasing.NOTIFY"
            android:permission="com.amazon.inapp.purchasing.Permission.NOTIFY"/>
        </intent-filter>
    </receiver>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant