# Introduction

Hello reader! You're about to add In-App Purchases to your Cordova Application, let this be your guide in the process.

I'm Jean-Christophe Hoelt, from Fovea, main developer of the In-App Purchase plugin. I built this guide for you as a collection of step-by-step recipes, each focusing on one specific goal. As soon as you know what your goal is, I will try to explain all the required steps to achieve it. I'll also give you general details about what the In-App Purchase technology is, how it works and what it can do for you.

Hopefully, it'll contain all the information you need from start to finish.

While I'm focusing on Cordova, it should be easy to transpose the tutorials to all platforms based on Cordova (PhoneGap, Ionic, ...).

Note that the most up-to-date version is available as a gitbook at <https://purchase.cordova.fovea.cc/>

### Contribute to this guide

The main repository is hosted on GitHub: <https://github.com/j3k0/cordova-plugin-purchase-documentation>.

The content is aimed to be digested by [gitbook](https://gitbook.com). Pull requests are welcome.

### How to get started?

You can then read the [little introduction to IAP technology](https://purchase.cordova.fovea.cc/cordova-in-app-purchases/discover/generalities-about-iap-technology). It'll explain what you can do with it on both iOS and Android, and the difference between those platforms.

If you like a (tiny) bit of theory, you can read the section on [the cordova plugin](https://purchase.cordova.fovea.cc/cordova-in-app-purchases/discover/about-the-plugin).

If you're curious to see it in action, you can take a look at the [micro example](https://purchase.cordova.fovea.cc/cordova-in-app-purchases/discover/micro-example).

Then you can jump to your use case from the list below, or the sidebar.

#### Use Cases

* [Consumable on Android](https://purchase.cordova.fovea.cc/cordova-in-app-purchases/use-cases/consumable-android)
* [Consumable on iOS](https://purchase.cordova.fovea.cc/cordova-in-app-purchases/use-cases/consumable-ios)
* [Auto-Renewing Subscription on Android](https://purchase.cordova.fovea.cc/cordova-in-app-purchases/use-cases/subscription-android)
* [Auto-Renewing Subscription on iOS](https://purchase.cordova.fovea.cc/cordova-in-app-purchases/use-cases/subscription-ios)
* [(TODO) Non-Consumable on Android](https://purchase.cordova.fovea.cc/cordova-in-app-purchases/use-cases/non-consumable-android)
* [(TODO) Non-Consumable on iOS](https://purchase.cordova.fovea.cc/cordova-in-app-purchases/use-cases/non-consumable-ios)
* [(TODO) Non-Renewing Subscription on Android](https://github.com/j3k0/cordova-plugin-purchase-documentation/blob/v11/use-cases/nr-subscription-android.md)
* [(TODO) Non-Renewing Subscription on iOS](https://github.com/j3k0/cordova-plugin-purchase-documentation/blob/v11/use-cases/nr-subscription-ios.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://purchase.cordova.fovea.cc/cordova-in-app-purchases/introduction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
