Amazon IAP Video Series Part 1 & 2, 3

The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
edited February 2014 in Community Tutorials
Here is part 1 of how to implement and test for Amazon In App Purchase.





Comments

  • lycettebroslycettebros Member, PRO Posts: 1,598
    Woot!
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Part two coming tomorrow.
  • lycettebroslycettebros Member, PRO Posts: 1,598
    @FryingBaconStudios Great video Dave.
    Can I ask will you only test the IAP on the actual device or will you do an emulation test also? I know you were having problems getting the emulator to work.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited February 2014
    Right now I'm going to test on the device but I did an update the other day and will try and see if they fixed the read only bug. That's the main problem with the emulator as you can't install the json file as it returns a read only for that folder on the emulator. I read some support posts and others were having that issue too. I updated the Android SDK which houses the amazon extras also so I'm going to try again. If so i'll demonstrate both.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Part 3 is rendering now! whew done.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Bump
  • lycettebroslycettebros Member, PRO Posts: 1,598
    Thanks Guru Bacon I will be working through this tonight if all goes well.
  • ultimaultima Member, PRO Posts: 1,207
    thanx Bacon, now the question is would we use the same MD5 since when we actually submit to amazon we are not signing the app using our own keystore but amazon's keystore.
  • ultimaultima Member, PRO Posts: 1,207
    "Appstore Certificate Hashes
    As part of the ingestion process Amazon removes your developer signature and applies an Amazon signature. This signature is unique to you, does not change, and is the same for all apps in your account."

    this is what i'm referring to on the amazing publishing page. it generates a different MD5 for you.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Yes but they are doing it on their end. They must do some kind of translation when they strip it away but remember they generate a key anyway when you make a security profile like I show and that it entered into the publishing system and is how they track the app not the key they may eventually sign it with. So each security profile is how a game is linked to it's IAP. Amazon says to use a different security profile for apps not linked together like a lite version and a regular version. The only way to have more than one security profile is to have more than one keystore.
  • ultimaultima Member, PRO Posts: 1,207
    were you able to publish successfully? =)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited February 2014
    I haven't published anything to kindle in a while. Gamesalads Android performance hasn't been up to my standards for a while now. I just bought a kindle HD third generation so I'm going to test out some stuff on it and see how the performance is lately.

    Here is what I pulled on creating the security profile off Amazon.

    (Optional) For a release or "production" version of your app. If you sign the release version of your app using your own certificate, you must create an additional API Key for the release version of your app. If you allow Amazon to sign your app on your behalf, you do not need to create an additional API Key.

    This is what I do in the video.
  • ultimaultima Member, PRO Posts: 1,207
    edited February 2014
    from my understanding, when amazon signs your application for you the MD5 would reflect in the apk listing that's being uploaded. hence instead of using MD5 from my own keystore, i'm using the one provided by amazon. The only thing I think I may have done incorrectly is introducing a "under_score" in my SKU, according to your tutorial, that should probably be avoided. I just submitted a new version and will keep you guys updated on the result. if not I'll try generating it from my own keystore next.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    what the instructions from GS say to do is sign it with your own key.
  • ultimaultima Member, PRO Posts: 1,207
    got it. should have dig through the GS instruction =)
  • lycettebroslycettebros Member, PRO Posts: 1,598
    Absolutely excellent @FryingBaconStudios
    Your instructions are clear and I have got it all working. My emulator even tested the IAP successfully.

    One point. I did not see any previous reference to 'Eclipse' that suddenly appears in video 3. You may have referenced to it in an earlier video that installed ADT. I had not done that so I had to work out installing Eclipse and connecting it to my SDK. I found that painless enough but I thought I would mention it as it came as a surprise to me.

    An excellent job - thank you.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Ah that might have been on my blooper reel...lol. Sometimes it can be several takes to get the video how I like it.
  • lycettebroslycettebros Member, PRO Posts: 1,598
    edited February 2014
    @FryingBaconStudios I used my own keystone to get the MD5 code. My app was rejected because of an error - could I need to use the Amazon MD5 as @ultima indicates?
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited February 2014
    What was the error? As I said the info I pulled from both the GS documents and Amazon say you can use your own key. Send a message to Amazon asking for a clarification.
  • IcedBIcedB Member, PRO Posts: 384

    @The_Gamesalad_Guru‌

    It seems like the IAP procedure has changed since these videos:

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Yes I have a video on GS new IAP system.

Sign In or Register to comment.