BPMB4X Purchase Manager
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 b4xlib

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.

Live Validation & Smart Caching

Always accurate, zero effort

Purchases and subscriptions are automatically re-validated in the background every 24 hours while your app is in use. Non-purchasing users cost you nothing.
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.
Privacy & ToS Compliance

App Store ready

Auto-generated privacy policy and terms of service for subscription apps. Meets App Store requirements 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.

Only paying users consume credits — free users cost you nothing
Free
$0/mo

500 credits

Overage: Hard limit

Launch
$5/mo

1,000 credits

Overage: $0.003/credit

Starter
$19/mo

5,000 credits

Overage: $0.005/credit

Indie
$49/mo

25,000 credits

Overage: $0.005/credit

Growth
$99/mo

150K credits

Overage: $0.005/credit

Pro
$199/mo

1.5M credits

Overage: $0.005/credit

Business
$499/mo

7.5M credits

Overage: $0.005/credit

Enterprise
$999/mo

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.

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

Ready to Monetize Your App?

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

Get Started Free