I'm really-really bad in reading manuals. I know that it is only my problem, but if anybody can share a simple sample with in-app-purchase it will be great.
Just an image that can be purchased and variable become 1 from 0.
I saw code in reference manual, but...
Sorry for my question, but i'm stuck on it and can't go throught.
Comments
2. In this tutorial, you set a bundle identifier. Change the Gideros Player's bunde id to it and redeploy to your device so that you can do tests with Gideros Player.
3. Try to retrieve your product list with this code (don't forget to change your product identifiers)
Likes: mertocan, boriskey
(But I haven't tried it yet)
2. In this tutorial, you set a bundle identifier. Change the Gideros Player's bunde id to it and redeploy to your device so that you can do tests with Gideros Player.
where i change the bundle id of gideros player?
Another question..
I creating a new IAP for my game. a need publish this on app store to test on my divice?
tks
you can change bundle identifier from xcode [summary or info tab] you don't need to publish the app but you have to setup you iap products in itunes also the bundleidentifier must have to be same in both in your xcode and in itunes
you can take a look at
http://www.raywenderlich.com/21081/introduction-to-in-app-purchases-in-ios-6-tutorial
there is no need to understand coding part as you are using gideros but still worth to look at this
How can i test IAP on gideros player run on iphone?
This a code:
require("storekit")
local function onRequestProductsComplete(event)
if event.errorCode ~= nil then
print("error", event.errorCode, event.errorDescription)
return
end
print("products:")
for i=1,#event.products do
print("title", event.products[i].title)
print("description", event.products[i].description)
print("price", event.products[i].price)
print("productIdentifier", event.products[i].productIdentifier)
end
print("invalidProductIdentifiers:")
for i=1,#event.invalidProductIdentifiers do
print(event.invalidProductIdentifiers[i])
end
end
storekit:addEventListener(Event.REQUEST_PRODUCTS_COMPLETE, onRequestProductsComplete)
storekit:requestProducts({"com.FlipFlopLab.NewSlidePuzzle.UnlockLevels"})
it always return erro invalidProductIdentifiers.
On itunes connect the IAD status is ready to submit
I confuse
But for me it looks like bundle identifier is ok.
But
your app bundle ID is the same as in-app purchase ID?
Bundle ID should be the same, as the Id of the app you created your purchase for. So just checking, if it is true?
I know that there is my fault. I just can't understand where it is.
If I for example have an app with bundle ID: com.test.mytestapp
And I create MyTestInApp in-app purchase for it, it's ID will be
com.test.mytestapp.mytestinapp
Unfortunately I have no access to IOS account right now, so can't check it.
It actually means you are ok.
first it lists the products:
which you have listed
then it lists invalid product identifiers, which you don't have:
Thanks @ar2rsawseen
Where should i put code for successfull purchase?
I have error:"Can't connect to the iTunes Store".
App Store works ok.
Can it be because i don't have a credit card submitted in my Apple ID?
If list is retrieved it's definitely can connect to iTunes, so the error should be somewhere else. I think it would have brought up the dialog or something to enter credit card information.
Unfortunately right now I have no idea
http://developer.apple.com/library/mac/#documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/13_ManagingIn-AppPurchases/ManagingIn-AppPurchases.html#//apple_ref/doc/uid/TP40011225-CH4-SW3
i.e.
1) logout of App Store under device settings
2) build app to device through XCode
3) when trying to make a purchase it'll specify it's a sandbox environment, then you can use the iTunes Test Account details to complete the purchase.
https://sites.google.com/site/xraystudiogame
I have about 900 payments for in-app and about 10 reviews+mails about "money left, but no in-game coins".
I remember someone posted on the forum that Apple now requires to put a Restore transactions button somewhere in the app. Most probably just for situations like that, so if user would buy something and not get it, they could try to restore transaction and you could handle it. But that is just a guess.
I'm not sure that this problem is on apple side.
You can read reviews for app here: http://www.appannie.com/app/ios/sostav-slova/reviews/?account_id=67087&page=2
Many people angry about payments.
https://play.google.com/store/apps/developer?id=My+name+is+Originality
Unfortunately I don't have access to IOS dev account right now.
But if it is a common bug, we need to fix it.
If for anyone else everything works ok, then we could help @unlying determine where could be a problem