poiuytrez / AndroidInAppBilling

Android App Billing plugin for Cordova
173 stars 144 forks source link

Not able to init through phonegap build #86

Open faizan101010 opened 9 years ago

faizan101010 commented 9 years ago

Hello,

I am trying using your plugin. I added this ins config.xml file and then uploaded it to phonegap build

/gap:plugin I did put my BILLING_KEY in the value above. But when I run the app. I am getting error like this index 1 out of Range[0..1) I tried console and it says key is undefined. I send the key during init as in option like this inappbilling.init(successHandler, errorHandler, {showLog:true,key:vkey}); where vkey contrain my Billing key string. Still I am not able to initialize the inAppbilling. Can anyone please tell what I am actually missing. When I see my apk file. I can see the inappbilling.js file being included in the head. I can also see com.smartmobilesoftware.inappbilling directory with in the plugin. Any kind of help will be greatly appreciated.
faizan101010 commented 9 years ago
<gap:plugin name="com.smartmobilesoftware.inappbilling">
         <param name="BILLING_KEY" value="" />
</gap:plugin>

This is the config.xml code.

bwin commented 9 years ago

Sorry for the late response. The official PGB plugin for this repo is com.smartmobilesoftware.androidinappbilling. Could you try again with this plugin id? Someone else published this repo before under the plugin id com.smartmobilesoftware.inappbilling, so we can't update that and I don't know which version he is using.

Seems the docs aren't up-to-date (which is at least in part my fault).