Built for B4X Developers

Monetize Your B4X App in Minutes

Add the B4X Purchase Manager b4xlib to your B4A or B4i project and get a complete monetization solution — purchase screens, server-side validation, live subscription monitoring, and more. Just a few lines of code and you're live.

500 free validations/month — No credit card required

Download the latest b4xlib from the official B4X forum

What is B4X Purchase Manager?

B4X Purchase Manager (BPM) is a hosted monetization platform for B4A and B4i developers. It provides server-side purchase validation, subscription management, built-in purchase screens, restore flows, and usage analytics — all through a single B4X library. Instead of building and maintaining your own validation server, you add one b4xlib, write a few lines of code, and your app is ready to accept payments on both Android and iOS.

One-time unlocksSubscriptionsConsumablesCross-platform validationRestore purchasesOffline entitlement caching
B4X:Main
' Initialize with your App ID and API key from the dashboard
PurchaseManager.Initialize(Root, BILLING_KEY, APP_ID, API_KEY)

' Add your products PurchaseManager.AddProduct("premium", "Premium", "Unlock all features")
' Show the purchase screen — that's it Wait For (PurchaseManager.ShowInAppPurchase) Complete (Success As Boolean)
' ───────────────────────────────────────────────── ' Check status anytime (instant, from local cache) If PurchaseManager.IsUnlocked Then ...
' Trigger a live validation at any time Wait For (PurchaseManager.ValidateNow) Complete (Success As Boolean)

Same code works on both Android (B4A) and iOS (B4i)

What You'd Build Without BPM

Without B4X Purchase Manager, monetizing your app means dealing with all of this yourself.

Set up and maintain your own validation server
Write server-side code to talk to Apple and Google APIs
Figure out how to store secrets securely
Spend weeks learning platform-specific edge cases
Pay for hosting, databases, SSL, and backups
Build your own usage tracking and monitoring

Or add the b4xlib and skip all of it.

More Than Just Validation

The B4X Purchase Manager b4xlib is a complete monetization toolkit. You focus on your apps — we handle the rest.

Built-in purchase screen

The b4xlib ships with ready-made purchase and subscription screens — dark mode, light mode, and fully customizable themes. Your users see a polished experience from day one, with zero UI work on your end.

Independent Smart Caching

You only pay for what's needed

Subscriptions and in-app purchases are cached independently — active subs re-validate every 24h, in-app purchases past the refund window only every 14 days. Expired or refunded users go dormant automatically at zero ongoing cost.
Android & iOS, All Your Apps

One codebase, one dashboard

Use one shared codebase and one dashboard to manage all your apps, API keys, and analytics — no separate servers per app.
Server-Side Validation

Tamper-proof by design

Every receipt is verified directly with Apple and Google on our servers. No secrets in your app, ever.
Restore Purchases

Works across devices

Built-in restore flow for both platforms. Users switching devices get their purchases back instantly.
App Store Compliance Built-In

No more rejections

The library automatically generates the required subscription disclosures, including auto-renewal terms, Terms of Service, and Privacy Policy — helping your app meet Apple Schedule 2, Section 3.8(b) out of the box.
Built-In Purchase Screens

Ship faster

Built-in purchase and subscription screens with dark mode, feature cards, and theming. No UI work needed.

Up and Running in 4 Steps

1

Register your app

Sign up, register your app, and grab your API key from the dashboard.

2

Add the library

Drop the B4X Purchase Manager b4xlib into your B4A or B4i project. One Initialize call.

3

Add your products

.AddProduct for unlocks, .AddSubscription for recurring — done.

4

Ship it

The library handles purchase screens, validation, caching, and compliance.

Simple, Transparent Pricing

Start free. Scale as your app grows.

Non-purchasing users cost you nothing — $0 alwaysExpired & refunded users go dormant automatically
Free
$0/mo

500 credits

~33 paying users

Overage: Hard limit

Launch
$5/mo

1,000 credits

~66 paying users

Overage: $0.003/credit

Starter
$19/mo

5,000 credits

~333 paying users

Overage: $0.005/credit

Indie
$49/mo

25,000 credits

~1,666 paying users

Overage: $0.005/credit

Growth
$99/mo

150K credits

~10K paying users

Overage: $0.005/credit

Pro
$199/mo

1.5M credits

~100K paying users

Overage: $0.005/credit

Business
$499/mo

7.5M credits

~500K paying users

Overage: $0.005/credit

Enterprise
$999/mo

25M credits

~1.6M paying users

Overage: $0.005/credit

1 credit = 1 validation. The average paying user consumes ~15 credits/month thanks to smart caching and dormant states. Paid tiers include overage billing so your app never stops working. Free tier blocks at the limit — no surprise charges, ever.

The cost of validation is typically less than 1% of what your paying users generate in revenue — and it only gets smaller as you grow.

Built by a B4X Developer, for B4X Developers

B4X Purchase Manager started as a personal tool. I had a PHP validation script on a hosting plan that worked — but adding more apps meant more servers, more databases, and more things to monitor. On top of that, one app took 2 hours to build but days to monetize. Another needed subscriptions implemented and splitting into five separate paid versions. The friction was real.

So I built the solution I needed — built-in purchase screens, server-side validation, and pricing that scales with my apps. Then I realized every B4X developer was hitting the same walls — so I turned it into a service anyone can use. Simply add the library, a few lines of code, and your monetization setup is done.

Your monetization infrastructure should never eat into your earnings — and with B4X Purchase Manager, it doesn't.

5 min

Integration time

0

Secrets in your app

$0

To get started

Frequently Asked Questions

Common questions about B4X Purchase Manager.

Ready to Monetize Your App?

Create a free account, grab your API key, and start validating purchases in minutes.

Get Started Free