cordova-plugin-inapppurchase icon indicating copy to clipboard operation
cordova-plugin-inapppurchase copied to clipboard

restorePurchases --> How to get the original Transaction ID?

Open desmeit opened this issue 7 years ago • 3 comments

Please include:

Your code / steps to reproduce

//Get Products
		inAppPurchase
		  .getProducts(['XXX'])
		  .then(function (products) {
			console.log(JSON.stringify(products));
			
		  })
		  .catch(function (err) {
			console.log(err);
		  });
		  
		  		  
	inAppPurchase
	  .restorePurchases()
	  .then(function (products) {
			console.log("restore: " + JSON.stringify(products));
	
			
			})
	  .catch(function (err) {
			 console.log(err);
			 });



Type of product you are working with consumable/non-consumable/subscription

non consumable

Version of cordova

IOS: 4.5.5

Version of iOS/Android

IOS 11.4.1

How can I get the ORIGINAL transaction ID with restoring. with every restoring I get a new transaction ID. I want to have the original. Is that possible?

desmeit avatar Oct 15 '18 08:10 desmeit

I think for Android you have the same signature as the original transaction id, so if you stored the original one in your database you could find it by that.

gonzaloserrano avatar Oct 18 '18 13:10 gonzaloserrano

Hello @desmeit ,

have you solved the problem?

best regards Horst

H0rst avatar Mar 17 '19 13:03 H0rst

Anyone solve this?

rbrand21 avatar Apr 17 '20 06:04 rbrand21