In app Purchasing not working?

Hey I’m using the Prime31 plugin for in app purchasing for iOS. Users get charged money but they don’t receive the in game currency. I wrote a function to detect the name of the in app product from the receipt and based on that, add a certain amount of in game currency. Anyone have any tips?

Make sure the class that is listening doesn’t get destroyed on scene load.

YOU have to give them the in game currency once you know they have made a successful purchase.

Run the sample code but using your own product ID(s). It demonstrates how to catch successful purchases.

I don’t have the script on me but in their example there is a function called purchaseEventSuccessful in the StoreKitBinding.cs. If you look in there it should show you how to trigger if the purchase was successful.

i’m so retarded I was comparing the transactionIdentifier instead of using the productIdentifier

now it looks like this and i’ve resubmitted to Apple

if(transaction.productIdentifier == “gold30000”)
Camera.main.gameObject.SendMessage(“Purchased”, 1);