question

Ligrew avatar image
Ligrew asked

[Unity plugin] Don't know where to start

Hello everyone, I'm developing a game in unity3D 4.3.4 and want to use Amazon IAP API in my project. In fact I can't find any information on how to initialize this API and use my public_key... Is there any docs, tut or video on this (step by step)? Best regards
iap
10 |5000

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

Ligrew avatar image
Ligrew answered
This is an error I'm facing: I/Unity ( 2757): AndroidJavaException: java.lang.IllegalStateException: You must register a PurchasingObserver before invoking this operation I/Unity ( 2757): at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in :0 I/Unity ( 2757): at UnityEngine.AndroidJNISafe.CallVoidMethod (IntPtr obj, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in :0 I/Unity ( 2757): at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in :0 I/Unity ( 2757): at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.Object[] args) [0x00000] in :0 I/Unity ( 2757): at AmazonIAP.initiatePurchaseRequest (System.String sku) [0x00000] in :0 I/Unity ( 2757): at MM_ShopSkulls.OnGUI () [0x00000] in :0 Which shows of after this line of code: AmazonIAP.initiatePurchaseRequest("and.here.is.my.proper.sku"); What should I do to resolve this issue?
10 |5000

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

Ligrew avatar image
Ligrew answered
I made a mistake in code so now it's ok. It's nothing to do with Amazon IAP...
10 |5000

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