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
' 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.
Always accurate, zero effort
One codebase, one dashboard
Tamper-proof by design
Works across devices
App Store ready
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.
Only paying users consume credits — free users cost you nothing500 credits
Overage: Hard limit
1,000 credits
Overage: $0.003/credit
5,000 credits
Overage: $0.005/credit
25,000 credits
Overage: $0.005/credit
150K credits
Overage: $0.005/credit
1.5M credits
Overage: $0.005/credit
7.5M credits
Overage: $0.005/credit
25M credits
Overage: $0.005/credit
1 credit = 1 validation. 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
Create a free account, grab your API key, and start validating purchases in minutes.
Get Started Free