- Home /
Step by step using Prime31 StoreKit In Apps Purchase
Hi there ! I'm still bit confused how to use StoreKit In Apps Purchase from Prime31.. I made simple project before I was ready to make the actual project and then I have registered my product with following id :
Product ID : Get100Coin
Product ID : Get200Coin
And I wrote the following code for retrieve my product from itunes
using UnityEngine;
using System.Collections;
public class IAPS : MonoBehaviour {
public static int Coin = 0;
string[] coin100 = {"G","e","t","1","0","0","C","o","i","n"};
string[] coin200 = {"G","e","t","2","0","0","C","o","i","n"};
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
if(GUI.Button(new Rect(70, 70, 100, 30), "Buy 100 Coin"))
{
#if UNITY_IPHONE
if(StoreKitBinding.canMakePayments() == true)
{
StoreKitBinding.requestProductData(coin100);
StoreKitBinding.purchaseProduct("Get100Coin", 1);
GUI.Label(new Rect(150, 70, 1000,30), "Congratulation! You Have additional 100 Coin !");
Coin+=100;
}
#endif
}
if(GUI.Button(new Rect(70, 140, 100, 30), "Buy 200 Coin"))
{
#if UNITY_IPHONE
if(StoreKitBinding.canMakePayments() == true)
{
StoreKitBinding.requestProductData(coin200);
StoreKitBinding.purchaseProduct("Get200Coin", 1);
GUI.Label(new Rect(150, 140, 1000,30), "Congratulation! You Have additional 200 Coin !");
Coin+=200;
}
#endif
}
GUI.Label(new Rect(70, 210, 1000,30), "Test :" +Coin);
}
}
Before I run the application I was log out from my device account but when I run the application and press a button, a dialog doesn't appears that ask me to enter the itunes connect ID.
Can someone help me step by step using Prime31 StoreKit Plugin?
Thanks for your response !
have you got the answer? @rufsus **Check this out**
Answer by Maulik2208 · Jan 10, 2013 at 04:59 AM
I Think for prompt and perfect reply on this You should ask this on Prime31's help or their service Department...... or you can try this Link---> Tutorial link for Prime31 for Iphone
Enjoy....Don't forget to mark the answer if found useful.....Cheers
Your answer
Follow this Question
Related Questions
Blackish GUIKit001 + Prime31 StoreKit for In-App-Purchase 1 Answer
Prime31 StoreKit TransactionId Mismatch 1 Answer
Problem with Prime31's StoreKit implementation 0 Answers
Prime31 storekit find product ID but not product description 0 Answers
How to unlock iphone game using prime31 storkit plugin? 0 Answers