Alex Rivera | Logout

Does PhoneGap support In-App Purchase?

Asked 2011-04-15T15:55:55.190
16

Has anyone used David Orchard's fork for in-app purchases with PhoneGap? It hasn't been updated in over a year. According to this thread Urban Airship can't help yet.

Edit
Report

1 Answer

4

The phonegap plugin suggested by daniellmb works well. Please keep the following in mind

  1. CORDOVA_FRAMEWORK in InAppPurchaseManager.h, remove all the code around that. You will run into 'CDVPlugin.h' file not found in inAppPurchaseManager.h, this is how both import should look

    #import <Cordova/CDVPlugin.h>
    #import <Cordova/NSData+Base64.h>
    
  2. If you get the errror Plugin 'InAppPurchaseManager' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist. You have to add the following to Cordova.plist

    <key>InAppPurchaseManager</key>
    <string>InAppPurchaseManager</string>
    
answered 2012-11-05T13:02:20.533

Your Answer