From shopware-apps
Shopware In-App Purchases (IAP) — Features hinter Paywall in Extensions. `sw.iap.purchase()` via Meteor Admin SDK, JWT-Token-Validierung (PHP SDK / jose), JWKS-Endpunkt `https://api.shopware.com/inappfeatures/jwks`, IAP-Gateway-Events. Monetarisierungsmodelle: Einmalkauf, Subscription, Commission. Trigger: "in-app purchase shopware", "iap shopware", "feature paywall extension", "sw.iap.purchase", "in-app-purchases jwt", "iap token validieren", "JWKS shopware", "meteor admin sdk iap", "shopware monetization", "paid extension", "extension verkaufen", "subscription shopware plugin". Ab Shopware 6.6.9.0.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shopware-apps:sw-monetization-iapThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Ab **Shopware 6.6.9.0**. Ermöglicht, bestimmte Features hinter einer Paywall zu sperren — innerhalb derselben Extension.
Ab Shopware 6.6.9.0. Ermöglicht, bestimmte Features hinter einer Paywall zu sperren — innerhalb derselben Extension.
<template>
<mt-button @click="onClick">Feature kaufen</mt-button>
</template>
<script setup>
import * as sw from '@shopware/meteor-admin-sdk';
function onClick() {
sw.iap.purchase({ identifier: 'my-feature-identifier' });
}
</script>
Checkout-Prozess wird von Shopware bereitgestellt. Button anzeigen/verbergen liegt beim Entwickler.
IAP-JWT kommt in jedem Request als:
in-app-purchasessource.inAppPurchases#[Route(path: '/app/admin', name: 'admin')]
public function admin(ModuleAction $action): Response {
return $this->render('admin.html.twig', [
'inAppPurchases' => $action->inAppPurchases->all(),
]);
}
Template: window.inAppPurchases = JSON.parse('{{ inAppPurchases | json_encode | raw }}');
import { jwtVerify, createRemoteJWKSet } from 'jose';
const JWKS = createRemoteJWKSet(new URL('https://api.shopware.com/inappfeatures/jwks'));
const { payload } = await jwtVerify(token, JWKS);
// payload enthält Liste gekaufter IAP-Identifier
| Modell | Beschreibung |
|---|---|
| Paid Extension | Einmalkauf oder Subscription im Shopware Store (via Shopware Account) |
| In-App Purchases | Features einzeln kaufbar innerhalb der Extension |
| Commission-based | Externe Service-Integration mit Transaktions-Gebühren → STP-Vertrag nötig |
Alle monetarisierten Extensions müssen Shopware Quality Guidelines erfüllen.
Details und IAP-Gateway-Events: references/deep/monetization-iap.md.
npx claudepluginhub zone1987/claude-a-dev-team --plugin shopware-appsProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.