AlexDisler / cordova-plugin-inapppurchase

A lightweight cordova plugin for in app purchases on iOS/Android
316 stars 191 forks source link

login required no auto login! #69

Open merbin2012 opened 8 years ago

merbin2012 commented 8 years ago

Just I run the code in debugging mode,

inAppPurchase .buy('com.expense.manager') .then(function (data) { // ...then mark it as consumed: return inAppPurchase.consume(data.productType, data.receipt, data.signature); }) .then(function () { console.log('product was successfully consumed!'); }) .catch(function (err) { console.log(err); });

It shown a error message, "Authentication is required. You need to sign in to your google account". Why you not integrate the auto login process? Do I need to install the google login plugin too?

wasa4587 commented 8 years ago

i've got the same error

John0x commented 8 years ago

Yeah, same here.

John0x commented 8 years ago

Any news about this?

wasa4587 commented 8 years ago

It' not a pluggin issue, you need to upload first , then download it, and you can delete the app and install a debug one and it should work

coldwhiz commented 7 years ago

This may be caused if you have created the in app product recently or have not created it in playstore. It takes time for them to load. During that time you may see this error.

philipphalder commented 7 years ago

That helped me once https://youtu.be/ZmHi225A6Y4

FreeValuator commented 7 years ago

I had the same error, but my problem was that I made productIds as numbers: 1,2,3,4... But you need to pass a string to the buy function and not an INT. So I fixed it by using num.toString() for the productId nums and after that everything worked perfectly!

rebrandsoftware commented 7 years ago

Same here, I was accidentally passing -1 to the Buy function and got the authentication error. Weird.