> For the complete documentation index, see [llms.txt](https://rehanabbas.gitbook.io/adpluginx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rehanabbas.gitbook.io/adpluginx/apple-signin-and-in-app-purchase/inapp-purchases.md).

# InApp Purchases

## Open Project in Xcode

And in Build & signin Enable InApp Purchase Option from capability.

## Now Use Predefine InAppPurchase Page

```dart
InAppPurchaseScreen(
    appBarWidget: yourAppBarWidget(),
    onChildRender: (productDetails, previosPurchase) {
       return yourTileUI();
    },
    productIds: [], // Your Plan List
    onPurchaseCompleted: () {
        Navigator.pop(context);
    },
    onAuth: () {
     // Show your Login Ui
    },
 )
```
