AlexDisler / cordova-plugin-inapppurchase

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

Getting a "billing not initialized" error #204

Open ghost opened 6 years ago

ghost commented 6 years ago

Followed all the steps including the demo, when I try to call 'subscribe', I get a 'Billing not initialized" error. Any ideas? I've tried six different in-app purchase plugins now and none of them seem to work. I had hope for this one...

vivascau commented 5 years ago

I had the same issue for Android and realised I did not add the manifest.json to www containing the public key.

If that is the case for you too try this:

  1. Get your base64 public key from Play Console > Development tools > Services & APIs
  2. Save that into a manifest.json file as per the plugin README
  3. Create a webhook to copy the manifest.json to www folder on before_prepare

Hope that helps.

kunalkakkad commented 4 years ago

I had the same issue for Android and realised I did not add the manifest.json to www containing the public key.

If that is the case for you too try this:

  1. Get your base64 public key from Play Console > Development tools > Services & APIs
  2. Save that into a manifest.json file as per the plugin README
  3. Create a webhook to copy the manifest.json to www folder on before_prepare

Hope that helps.

Hello,

Can you please provide me a example of copy hook, if you have the one or have used?

Thanks, Kunal Kakkad