Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to init through phonegap build #86

Open
faizan101010 opened this issue Dec 3, 2014 · 2 comments
Open

Not able to init through phonegap build #86

faizan101010 opened this issue Dec 3, 2014 · 2 comments

Comments

@faizan101010
Copy link

Hello,

I am trying using your plugin. I added this ins config.xml file and then uploaded it to phonegap build
<gap:plugin name="com.smartmobilesoftware.inappbilling">

/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
Copy link
Author

<gap:plugin name="com.smartmobilesoftware.inappbilling">
         <param name="BILLING_KEY" value="" />
</gap:plugin>

This is the config.xml code.

@bwin
Copy link
Contributor

bwin commented Jan 9, 2015

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants