Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
InAppBilling Cordova Plugin
Almost all of the methods in this plugin take individual
fail callbacks. This is even true for methods which may be called multiple times. As an example you may call
inappbilling.buy multiple times, each time with different
fail callbacks. The reason for this is that you may then directly react to the proper payment's event without having to keep a list of what user is doing and without complicated tracking code.
Lest say you have two products, sword and energy power up, which the user tries to buy at same time. You can have two different
success callbacks one for sword and another for energy power up. When user is finished with buying any of those, the specific callback is called and may react to the proper purchase without even knowing about what is going on with other purchases.
Now that you know a bit about the overall idea of this plguin, you may find more details on other pages of this wiki. There is a sample application which uses this plugin for doing in-app purchase on supported plugins.