question

newuser-7c22eb1f-3e12-4784-a189-b81cd8729af4 avatar image

Some RVS Sandbox Response Fields does not exist.

Based on this link, I send RVS request to local RVSSandbox. So I received response without some fields, 'renewalDate', 'term' and 'termSku'.

Is the response of the RVS Sandbox incorrect?

・request url

http://localhost:8888/RVSSandbox/version/1.0/verifyReceiptId/developer/developerSecret/user/99FD_DL23EMhrOGDnur9-ulvqomrSg6qyLPSD3CFE=/receiptId/q1YqVrJSSs7P1UvMTazKz9PLTCwoTswtyEktM9JLrShIzCvOzM-LL04tiTdW0lFKASo2NDEwMjCwMDM2MTC0AIqVAsUsLd1c4l18jIxdfTOK_N1d8kqLLHVLc8oK83OLgtPNCit9AoJdjJ3dXG2BGkqUrAxrAQ

・response

{"productType":"ENTITLED","cancelDate":null,"quantity":1,"betaProduct":false,"testTransaction":true,"receiptId":"q1YqVrJSSs7P1UvMTazKz9PLTCwoTswtyEktM9JLrShIzCvOzM-LL04tiTdW0lFKASo2NDEwMjCwMDM2MTC0AIqVAsUsLd1c4l18jIxdfTOK_N1d8kqLLHVLc8oK83OLgtPNCit9AoJdjJ3dXG2BGkqUrAxrAQ","productId":"com.amazon.iapsamplev2.expansion_set_3","parentProductId":null,"purchaseDate":1402008634018}
iaptesting
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

Thanks for posting! Please note that 'renewalDate', 'term' and 'termSku' are only populated for the subscription product types. Consumable and entitlement product types will not have those fields populated. Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-7c22eb1f-3e12-4784-a189-b81cd8729af4 avatar image
newuser-7c22eb1f-3e12-4784-a189-b81cd8729af4 answered

Thank you for your reply.

I tried with subscription type, but RVS Response doesn't have those fields, 'renewalDate', 'term' and 'termSku'.

RVS Response from RVS Sandbox doesn't have those fields?

・request url

http://localhost:8888/RVSSandbox/version/1.0/verifyReceiptId/developer/developerSecret/user/l3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU=/receiptId/DctBC4IwFADg__LONdY0R0I3pbDCQwRdXyY62Nvm5gKN_nu7fvB9IUAJnSWGhKs1LCA53TOFjoX4Cp1XblbJaSEccFWmhw2809ntuRRSiIzzXCaLyXR2vsqnc_Vt9O2pMtEftlF_Jkv-PhTT0lYXwlEWunkcU5mhFL8_

・response

{"purchaseDate":1507272230047,"receiptId":"DctBC4IwFADg__LONdY0R0I3pbDCQwRdXyY62Nvm5gKN_nu7fvB9IUAJnSWGhKs1LCA53TOFjoX4Cp1XblbJaSEccFWmhw2809ntuRRSiIzzXCaLyXR2vsqnc_Vt9O2pMtEftlF_Jkv-PhTT0lYXwlEWunkcU5mhFL8_","productId":"com.amazon.sample.iap.subscription.mymagazine","parentProductId":null,"productType":"SUBSCRIPTION","cancelDate":null,"quantity":1,"betaProduct":false,"testTransaction":true}
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

What version of RVS are you using: version 1 or 2? The version of RVS should be the same as your IAP. From your message it looks like you are using RVS v1, but should probably be using RVS v2 instead. If that's so, please use RVS v2 and try again. Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-7c22eb1f-3e12-4784-a189-b81cd8729af4 avatar image
newuser-7c22eb1f-3e12-4784-a189-b81cd8729af4 answered

Thank you Levon.

How can I find the version of RVS?

I've set up RVS Sandbox according to the Setting up the RVS Sandbox section, but RVSSandbox.war was only in Amazon-Android-SDKs/AmazonInAppPurchasing/tools. And I sent a request to the URL constructed according to the RVS Request Syntax section.

・Setting up the RVS Sandbox section:

https://developer.amazon.com/docs/in-app-purchasing/iap-rvs-for-android-apps.html#setting-up-the-rvs-sandbox

・RVS Request Syntax section:

https://developer.amazon.com/docs/in-app-purchasing/iap-rvs-for-android-apps.html#rvs-request-syntax

Please let me know if something is wrong.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

This could simply be an example in documentation that lists all available fields, even if they are null (as you can see in examples with entitlements and consumables). What version of App Tester are you using: please updated it to the latest available: https://developer.amazon.com/docs/in-app-purchasing/iap-app-tester-user-guide.html

Also, does RVS work for you in general (apart from not getting those 3 fields in your responses)?

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-969135e3-b78a-4a72-88b8-48a45c53c417 avatar image
newuser-969135e3-b78a-4a72-88b8-48a45c53c417 answered

It still continues. RVS Sandbox installed to Apache Server which version 7.0, I am using IAP v2.0 and also i deployed correct version of android sdk from here

Those fields are missing in RVS sandbox: renewalDate,term,termSku,testTransaction

Here is the json response

{ "cancelDate": null, "parentProductId": null, "receiptId": "q1YqVbJSyjH28DGPKChw9c0o8nd3ySststQtzSkrzM8tCk43K6z0d_HOTcwwN8vxCrVV0lEqBmpJzs_VS8xNrMrP06tMTSzKqQSKlyhZGekopQBlDU0NDUzNLC2NzC1MDJRqAQ", "productType": "SUBSCRIPTION", "testTransaction": true, "productId": "com.amazon.yearly", "quantity": 1, "purchaseDate": 1510569927840, "betaProduct": false }

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-969135e3-b78a-4a72-88b8-48a45c53c417 avatar image
newuser-969135e3-b78a-4a72-88b8-48a45c53c417 answered

Why these two links show different fields in response ? The first model does not include renewalDate,term,termSku,testTransaction fields but the second model does. I am using IAP v2.0 but i get response like the first page.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

aeharhawrh avatar image
aeharhawrh answered

Same issue here! Please fix, we cannot use the sandbox now :/

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-dc73c16a-b73c-4052-ad85-36e8495a861a avatar image
newuser-dc73c16a-b73c-4052-ad85-36e8495a861a answered

I'm having the same issue, using IAP 2.0, but not receiving a RenewalDate:

{"parentProductId":null,"productType":"SUBSCRIPTION","cancelDate":null,"quantity":1,"betaProduct":false,"testTransaction":true,"purchaseDate":1522860586308,"productId":"showtimesub","receiptId":"q1YqVbJSyjH28DGPKChw9c0o8nd3ySststQtzSkrzM8tCk43K6z0d_HOTcwwN8vxCrVV0lEqBmopzsgvL8nMTS0uTQKKlChZGekopQDFDU2NjCzMDEwtzIwNLJRqAQ"}
2 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Can you please provide us the details about the request URL which you are using to get that response?

0 Likes 0 ·

URL: http://dws7.mia2.cbsig.net:8080/RVSSandbox/version/1.0/verifyReceiptId/developer/irrelevant/user/l3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU=/receiptId/q1YqVbJSyjH28DGPKChw9c0o8nd3ySststQtzSkrzM8tCk43K6z0d_HOTcwwN8vxCrVV0lEqBmopzsgvL8nMTS0uTTJPSawsKcpMzAFKlShZGekopQAVGJoamRtamBpbGpiYGyvVAgA

(I deployed this locally taking the latest war file from here android link here )

response [purchaseDate:1527185390473, productId:showtimesub7daytrial, receiptId:q1YqVbJSyjH28DGPKChw9c0o8nd3ySststQtzSkrzM8tCk43K6z0d_HOTcwwN8vxCrVV0lEqBmopzsgvL8nMTS0uTTJPSawsKcpMzAFKlShZGekopQAVGJoamRtamBpbGpiYGyvVAgA, betaProduct:false, testTransaction:true, parentProductId:null, productType:SUBSCRIPTION, cancelDate:null, quantity:1]

0 Likes 0 ·
newuser-5937b932-aace-4fa9-88a5-d9114a07af93 avatar image
newuser-5937b932-aace-4fa9-88a5-d9114a07af93 answered

Indeed, it appears that the RVSSandbox doesn't return several critical fields. Even taking the link from Amazon's own page: https://developer.amazon.com/docs/in-app-purchasing/iap-rvs-examples.html shows a different result than what they show as the expected response.

All I get is this from their link:

{
    "testTransaction": true,
    "receiptId": "q1YqVrJSSs7P1UvMTazKz9PLTCwoTswtyEktM9JLrShIzCvOzM-LL04tiTdW0lFKASo2NDEwMjCwMDM2MTC0AIqVAsUsLd1c4l18jIxdfTOK_N1d8kqLLHVLc8oK83OLgtPNCit9AoJdjJ3dXG2BGkqUrAxrAQ",
    "productType": "ENTITLED",
    "purchaseDate": 1402008634018,
    "productId": "com.amazon.iapsamplev2.expansion_set_3",
    "parentProductId": null,
    "betaProduct": false,
    "cancelDate": null,
    "quantity": 1
}

Missing fields are:

autoRenewing, cancelReason, freeTrialEndDate, gracePeriodEndDate, renewalDate, term, termSku

I'm going to proceed as if its just an RVSSandbox issue, but this is surely something amazon should fix if they expect us to take this seriously. Without those fields we might as well just code for live and hope we get it right.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.