benxu.AppPlatform.Billing.Core
3.2.8
dotnet add package benxu.AppPlatform.Billing.Core --version 3.2.8
NuGet\Install-Package benxu.AppPlatform.Billing.Core -Version 3.2.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="benxu.AppPlatform.Billing.Core" Version="3.2.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="benxu.AppPlatform.Billing.Core" Version="3.2.8" />
<PackageReference Include="benxu.AppPlatform.Billing.Core" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add benxu.AppPlatform.Billing.Core --version 3.2.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: benxu.AppPlatform.Billing.Core, 3.2.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package benxu.AppPlatform.Billing.Core@3.2.8
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=benxu.AppPlatform.Billing.Core&version=3.2.8
#tool nuget:?package=benxu.AppPlatform.Billing.Core&version=3.2.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
benxu.AppPlatform.Billing.Core
訂閱計費的核心抽象層,定義介面與模型,不依賴任何具體實作。
功能
ISubscriptionService- 訂閱服務核心介面IEntitlementProvider- 權限判斷介面ISubscriptionSyncService- 後端同步介面- 完整的訂閱狀態與商品模型
安裝
dotnet add package benxu.AppPlatform.Billing.Core
模型
| 類別 | 說明 |
|---|---|
SubscriptionStatus |
訂閱狀態(含到期時間、自動續訂等) |
Entitlement |
權限資訊 |
ProductInfo |
商品資訊(價格、週期等) |
PurchaseResult |
購買結果 |
OfferingsInfo |
Offerings/Packages(RevenueCat 概念) |
使用方式
此套件為抽象層,需搭配實作套件使用(如 benxu.AppPlatform.Billing.RevenueCat)。
// 注入 ISubscriptionService
public class MyPage
{
private readonly ISubscriptionService _subscription;
public MyPage(ISubscriptionService subscription)
{
_subscription = subscription;
}
private async Task CheckSubscription()
{
if (_subscription.IsSubscribed)
{
// 顯示 Premium 內容
}
else
{
// 顯示 Paywall
}
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Xamarin.Build.Download (>= 0.11.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on benxu.AppPlatform.Billing.Core:
| Package | Downloads |
|---|---|
|
benxu.AppPlatform.Billing.RevenueCat
RevenueCat integration for in-app subscriptions in .NET MAUI. Provides real SDK integration for Android/iOS with optional simulator mode for testing. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.2.8 | 209 | 7/7/2026 |
| 3.2.7 | 145 | 6/5/2026 |
| 3.2.6 | 156 | 5/30/2026 |
| 3.2.5 | 169 | 4/25/2026 |
| 3.2.4 | 132 | 4/25/2026 |
| 3.2.3 | 147 | 4/23/2026 |
| 3.2.2 | 143 | 4/22/2026 |
| 3.2.1 | 146 | 4/17/2026 |
| 3.2.0 | 144 | 4/11/2026 |
| 3.1.9 | 143 | 4/10/2026 |
| 3.1.8 | 129 | 4/10/2026 |
| 3.1.7 | 133 | 4/10/2026 |
| 3.1.6 | 151 | 4/10/2026 |
| 3.1.5 | 138 | 4/9/2026 |
| 3.1.4 | 133 | 4/7/2026 |
| 3.1.3 | 144 | 3/24/2026 |
| 3.1.2 | 130 | 3/23/2026 |
| 3.1.1 | 127 | 3/22/2026 |
| 3.1.0 | 129 | 3/22/2026 |
| 3.0.9 | 134 | 3/20/2026 |
Loading failed