onepf / OpenIAB

Open In-App Billing for Google Play, SlideMe, Amazon Store, Nokia Store, Samsung Apps, Yandex.Store, Appland, Aptoide, AppMall and Fortumo.
http://onepf.org/openiab/
Apache License 2.0
474 stars 171 forks source link

What is Ios store key? #210

Closed madangosain closed 10 years ago

madangosain commented 10 years ago

Which key am supposed to pass when connecting to IOS store? Here is the code: Options options = new OnePF.Options(); options.verifyMode = OptionsVerifyMode.VERIFY_EVERYTHING; options.storeKeys.Add(OpenIAB_iOS.STORE, <?????????>); OpenIAB.init(options);

I've tried passing 1) Application SKU shown under "App Information" with bundle id 2) Shared Secret key under "Generate Shared Secret" A shared secret is a unique code that you should use when you make the call to our servers for your In-App Purchase receipts. Without a shared secret, you will not be able to test auto-renewable In-App Purchase subscriptions in the sandbox mode. Also note that you will not be able to make them available on the App Store.

I've tried both and test purchases work fine with either. Which key am supposed to pass here? If (1), then where do I set my shared secret key?

GrimReio commented 10 years ago

Hi! It is not required to add App Store into this list. It was added for Google Play and other stores, which require a key.

But it is mandatory to map SKUs on iOS. Internally they are added to a list and then are sent to the store.

madangosain commented 10 years ago

Thanks for the clarification. That solved my query. Yes, I am mapping all item SKUs for all appstores/playstores.

One thing which still not clear to me is: In Itunes connect, it says that shared secret key is required to purchase subscriptions. But OpenIAB has never asked for my itunes secret key. Does that mean it does not work with auto-renewable IAP subscriptions? or Apple Itunes's Secret key is only required for testing purpose?

GrimReio commented 10 years ago

If I understand correctly, this shared secret is used only by developer in the iTunes connect to test auto-renewables in sandbox mode and then be able to make them available for end users in App Store.

madangosain commented 10 years ago

Yes, you are correct. Thank you