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
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.
' 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)
Without B4X Purchase Manager, monetizing your app means dealing with all of this yourself.
Or add the b4xlib and skip all of it.
The B4X Purchase Manager b4xlib is a complete monetization toolkit. You focus on your apps — we handle the rest.

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.
You only pay for what's needed
One codebase, one dashboard
Tamper-proof by design
Works across devices
No more rejections
Ship faster
Sign up, register your app, and grab your API key from the dashboard.
Drop the B4X Purchase Manager b4xlib into your B4A or B4i project. One Initialize call.
.AddProduct for unlocks, .AddSubscription for recurring — done.
The library handles purchase screens, validation, caching, and compliance.
Start free. Scale as your app grows.
500 credits
~33 paying users
Overage: Hard limit
1,000 credits
~66 paying users
Overage: $0.003/credit
5,000 credits
~333 paying users
Overage: $0.005/credit
25,000 credits
~1,666 paying users
Overage: $0.005/credit
150K credits
~10K paying users
Overage: $0.005/credit
1.5M credits
~100K paying users
Overage: $0.005/credit
7.5M credits
~500K paying users
Overage: $0.005/credit
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.
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.
Integration time
Secrets in your app
To get started
Common questions about B4X Purchase Manager.
Create a free account, grab your API key, and start validating purchases in minutes.
Get Started Free