In-app purchase in Unity 5.3 not working

Hello everybody.

Need your help. Internal Unity In-app. Unity version: 5.3.1p1

Situation: I make everything well in code (I hope), and then I was tested purchases on real devices with working acount (and with credit card).

And I have a problem with initialising purchases ~1 week already. And can not understnad what wrong.

Error message on start: PurchasesUnavailable. Error on Android.

Windows Store not working too.

May be wrong here? :

// vars:

public class Purchaser : MonoBehaviour, IStoreListener
{ 

private string B3000 = "2000_gold_coins";
private string B10000 = "10000_gold_coins";
private string ADS = "noads";

// procedure:

public void InitializePurchasing  () {
	if (IsInitialized ()) {
		if (characterController.DebugMode) {
			Debug.Log ("AIP already INITED");
		}
		return;
	} else {
	var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());

		builder.AddProduct	(ADS, ProductType.Consumable, new IDs
			{
				{"noads_google", GooglePlay.Name},
				{"noads_windows", WindowsPhone8.Name},
				{"noads_mac", MacAppStore.Name}
			});
		
		builder.AddProduct	(B3000, ProductType.Consumable, new IDs
			{
				{"2000_gold_coins_google", GooglePlay.Name},
				{"3000_coins_windows", WindowsPhone8.Name},
				{"2000_gold_coins_mac", MacAppStore.Name}
			});
		UnityPurchasing.Initialize (this, builder);
	}

// Call

	IAPScript.GetComponent<Purchaser> ().Buy (productString);

// Request

	public void Buy	(string productId)
	{

	InitializePurchasing ();

	if (IsInitialized ()) {
		controller.InitiatePurchase (productId);
	}

	else {
		
		Debug.LogError ("BuyProductID FAIL. Not initialized.");
		AVATAR.GetComponent<characterController>().PurchaseInitFail();
	}
	}

Thank you!

And Happy New Year!

Very strange with this 5.3 build. People now report me: IAP works on 4.3 Android one time of four-five attempts. ON BETA!

Not working on Windows Phone 10 and Windows Phone 8.1 (Windows Store);

wtf with this? :-}

@navi2121 Have you set up your products and followed the steps outlined [here]?1

Please attach an adb trace from application startup through to the unexpected behaviour.

Edit - I suggest the forums are more appropriate for this, it is impossible to give an answer to IAP related questions such as this when there are many publisher configuration specific problems that can cause IAP not to work.

Can you fix it ?? I get the same problem.

Where is the problem?

Need your help~

hi there, in my game(android platform ) i have non consumable product google play store , how can i restore those item .

hi,
it work with me without any problem

but after i build the app. and click the button that call ( BuyProductID(id) ) the google small window show me “Error, the product not avilable” >> or like this message because it not english

so any idea how i can fix it?

same here

Hey guys,

this need an immediate attention don’t waste time people like me are waiting to submit some games for this issue please fix it ASAP

Thanks