Instructions for v2.0
For testing Amazon IAP v 2.0 you follow a similar process to the above:
- Download the Amazon App Tester app from the Amazon store (do not sideload). NOTE: this is not compatible with the AmazonSDKTester app (remove this from device/s before installing the Amazon App Tester app)
- The JSON should still be placed on the device, and enable check_sandbox if relevant in the Amazon addon
- For more information on using it, see Amazon's documentation
Note: this process is not supported on Android L.
Amazon Live App Testing
Amazon also offers live app testing for beta users (much like Google Play). To use:
- The apk must be uploaded to the Amazon Developer Portal, and the app fully ready to submit (upload an updated apk under 'Live App Testing' tab); you may need to delete previous apks uploaded here in order to enable device support
- All IAPs must be live
- A live test must be set up (under 'Live App Testing') - you will need to wait to begin testing until this shows the state of 'Test In Progress'
- The Amazon base URL must be set to the live one on the server (not sandbox) i.e. unset check_sandbox if relevant in the Amazon addon
- Testers must be signed in to the Amazon app store/email on device/s with (Amazon) accounts added and assigned as testers in the Amazon portal. These must be real Amazon accounts (and you cannot test purchasing when signed in to the account that you uploaded the build to). The email address of the user, must match the Amazon account of the user.
- When the test has begun, the test users will receive an email (to the accounts that have been added as testers), with a link to begin the test.
- The tester can deliver the live app testing version of the apk by clicking the link in the email and signing in to Amazon in the browser on desktop (doesn't have to be on the device) - Amazon should show a list of devices linked to that account. If you want to check the devices linked to the test account before starting testing, log in to the tester's Amazon account and view Your Account > Manage Your Content and Devices > Devices
See Live App Testing for more information.
Note: It can take a while for live apps/live app updates to propagate.
Sample JSON
A sample amazon.sdktester.json (validate your JSON through http://jsonlint.com/). The IDs must match what your Pugpig app uses.
Amazon can now generate the testing file for you through the developer portal, in the in-app purchases section use the export option (and choose the json format).
"uk.co.test.pugpig.issue20130309": { "itemType": "ENTITLED", "price": 3.99, "title": "17 June 2013", "description": "Pugpig 101", "smallIconUrl": "http://some/image.jpg" }, "uk.co.test.pugpig.sub.monthly1": { "itemType": "SUBSCRIPTION", "price": 9.99, "title": "1 month", "description": "1 month subscription", "smallIconUrl": "http://some/image.jpg", "subscriptionParent": "uk.co.test.pugpig.sub" }, "uk.co.test.pugpig.sub.annual1": { "itemType": "SUBSCRIPTION", "price": 99.99, "title": "1 year", "description": "1 year subscription", "smallIconUrl": "http://some/image.jpg", "subscriptionParent": "uk.co.test.pugpig.sub" }
Amazon App Tester Notes
- Get the amazon JSON sdk file you need and download it on to your desktop
- Use Android File Transfer to move the JSON to your device but do NOT put it into a folder
- The new JSON should now appear in your Amazon Tester App
References
- http://stackoverflow.com/questions/11876539/amazon-in-app-purchase
- https://developer.amazon.com/sdk/in-app-purchasing/documentation/testing-iap.html
- https://developer.amazon.com/sdk/in-app-purchasing/documentation/rvs.html
- http://forums.developer.amazon.com/forums/thread.jspa?threadID=384 (How to send to /mnt/sdcard)
- http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
- https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/app-tester-user-guide
- https://developer.amazon.com/public/resources/development-tools/live-app-testing
Comments
0 comments
Please sign in to leave a comment.