IAP Plugin Error: "This In-App Purchase has been already bought. It will be restored for free"

IAP Plugin Error: "This In-App Purchase has been already bought. It will be restored for free"
0

#1

I have added 5 consumable IAP to my iOS game. Out of these 5 consumable IAP, when I try to purchase one specific IAP, I see the popup saying "This In-App Purchase has been already bought. It will be restored for free."

The other 4 consumable IAP are working properly. In iTunes Connect, all the 5 IAP are set to “consumable” so there is no configuration problem.

This issue happens on iPhone 6s (iOS 11.4.1) and not on iPad Air (iOS 11.4.1).

How to fix this issue?


#2

http://greensopinion.com/2017/03/22/This-In-App-Purchase-Has-Already-Been-Bought.html

do you have other lib such as firebase.

plz try to call IAP::init(); first.
Thanks


#3

Thank you for the reply. Yes, I am initializing the Firebase and other plugins before the IAP plugin.

I will change the plugin initialization sequence. Thank you.


#4

I am also facing this issue on iOS only.
This is my initialize code

	sdkbox::IAP::setListener(...);
	sdkbox::IAP::init();
	sdkbox::IAP::setDebug(true);
	sdkbox::PluginFacebook::setListener(...);
	sdkbox::PluginFacebook::init();
	sdkbox::PluginOneSignal::setListener(...);
	sdkbox::PluginOneSignal::init();
	sdkbox::PluginOneSignal::idsAvailable();
	sdkbox::PluginOneSignal::enableInAppAlertNotification(false);
	sdkbox::Firebase::Analytics::init();

Please help me asap.
Thanks.


#5

see like, the product havn’t consumed, you can invoke finishTransaction to consume this.


#6

But this is happening everytime on purchase of consumable items.


#7

you have invoke setAutoFinishTransaction(false) ?

use isAutoFinishTransaction to check.


#8

No.
As i said above

This is what i am calling.
Also if you remembered then same issue was there in Android also and you fixed.
Look here : IAP v2.4.0.3 price value problem


#9

i use this sample to test, can’t reproduce.
my test step: run Test app->tap “Purchase”-> purchase query dialog->purchase success->tap “Purchase” -> purchase dialog -> purchase success.

you can replace sample config with your config, and try.


#10

ok.
Can you please tell me where sdkbox plugin folder is located in mac?
In windows its located at C:\Users\user-name\.sdkbox


#11

it’s here: /Users/user-name/.sdkbox