← All posts

Testing Google Play In-App Purchases on a Real Cloud Phone (2026)

Sep 20, 2026 · By Xavier Fok

You finish your in app purchase flow, you point it at the sandbox, you tap the buy button, a test dialog says success, and your unlock screen appears. It works, so you ship. Then a real customer in Singapore taps the same buy button and it stalls. The price shows in the wrong currency, the payment methods they expect are missing, or the purchase goes through and your app never unlocks the thing they just paid for. Nothing was broken in your code. The layer that broke was the real Google Play billing stack underneath, and that is the layer a sandbox never truly shows you.

For context, I run more than a hundred real cloud Android phones in Singapore. Genuine Samsung handsets on real carrier sims, each with its own persistent Singapore mobile ip and its own adb endpoint, on dedicated hardware in a rack, with a live view you open in the browser. A purchase is the one flow you cannot honestly fake, because it runs through Google Play billing and Google Play services quietly grade the device they run on. Google’s own test tooling is genuinely good and you should use it, but the moment a test has to reflect what a real buyer sees, the device underneath decides whether the pass means anything.

Why a purchase is different from every other test

A normal ui test drives your own screens, and you control every pixel of it. A purchase is not like that. Your app calls the Play billing library, and then it hands control to Google Play. Play takes over with its own sheet, the account’s payment methods appear, the charge happens on Google’s side, and only then does a purchase token come back to your app so it can unlock the content. Half of the flow lives inside a system you do not own, and that system decides what to show based on the account and the device it trusts.

Where the purchase test runs What Google Play shows it What the pass is worth
Emulator with a static test product A fixed fake result, no real sheet Your code branches, nothing about the buyer
License tester on an emulator Real flow, but on hardware that can fail integrity A green on a device your customer is not using
Real cloud phone, real SG account Real price, real local methods, real integrity The checkout your customer will actually get

That table is the whole argument in miniature. Static test products are perfect for exercising your own code branches, and license testers add the real Play flow without charging a card. But both still need to run somewhere, and the somewhere is exactly what an emulator gets wrong.

What Google’s test tools do well

Credit where it is due. In the Play Console you add license test accounts, and when one of those accounts buys, the purchase runs through the entire real flow while the card is never actually charged. You can also wire static test products that always return a fixed result, purchased, canceled, or refunded, so you exercise each branch of your handling code without touching a real payment. For confirming that your billing library calls are correct, that acknowledgements fire, and that your unlock logic runs, this is the right tool and it costs nothing. Start here, and keep this layer fast.

Where these tools stop is the real world the purchase lives in. A license tester still has to sign in on a real device with real Google Play services, so an emulator was already the weak link. Static test products skip the real payment sheet entirely, so they never show you the currency, the price tier, or the local payment methods a buyer actually meets. And a purchase that is never charged cannot tell you whether your server correctly verifies a genuine token from a genuine sale. The free tools cover the code path. They do not cover the market.

Region, currency, and the payment methods a real buyer sees

Region is the first thing only a real setup gets right. The price your buyer sees, the currency it is in, and the payment methods offered are all decided by the country on the Google account and the signals of the device it sits on. A test account pinned to the wrong country, or an emulator with no real network behind it, will happily show you a price and a payment list no Singapore customer will ever see. If your pricing is tiered by market, testing on the wrong region is testing a product you do not sell.

On a real Singapore phone, the store shows what a real Singapore buyer gets. Prices in Singapore dollars, the local payment methods people here actually use, carrier billing on a real carrier, and the checkout your customer will really walk. Each cloudf.one phone has its own persistent Singapore mobile ip on a real carrier sim across Singtel, StarHub, M1, and Vivifi, so the device is not wearing a Singapore label, it is physically on a Singapore network. For anything where the price or the payment options change by country, that gap between a labelled location and a lived one is the difference between a test that reflects your buyer and one that quietly does not.

Integrity sits underneath the purchase

Device integrity sits below the whole purchase. Google Play services check whether they are running on genuine, uncompromised hardware, and an emulator or a rooted phone can fail that check. When it fails, billing can behave differently or refuse outright, and any part of your app that gates a feature behind an integrity signal takes a path a real customer never takes. A real Samsung handset passes because there is nothing to pass, it simply is a genuine certified device. The purchase runs the same way it will for the person who actually pays you, which is the only run that matters.

Subscriptions need a device that is still there tomorrow

Subscriptions are where the testing gets genuinely hard, because a subscription is not one event, it is a life. There is the free trial, the introductory price, the first real renewal, then the states that follow, active, a grace period when a payment fails, on hold, paused, canceled, and resubscribed. Upgrades and downgrades carry their own proration. Your app has to react correctly to every one of these, and most of them only reveal themselves over real time, on a device that is still there tomorrow when the renewal actually fires.

This is exactly where a wiped or throwaway device falls apart. A subscription you start today has to still be there next week so you can watch it renew, and the account that bought it has to be the same account when the grace period hits. A device that resets between sessions cannot hold any of that, so you never see the renewal, the dunning, or the recovery your real subscribers will live through. On a dedicated phone the handset, the account, and the sim all persist, so a subscription test you begin on Monday is still running on the same phone when the state you were waiting for finally arrives.

Verify the purchase token on your own server

The half most teams forget to test is their own server. A real purchase returns a purchase token, and your backend is supposed to verify that token against the Google Play developer api before it grants anything, so a forged or replayed receipt gets rejected. You can only exercise that path honestly with a real token from a real device flow, ideally a license tester so no money moves. Run the whole loop, buy on the phone, let the token reach your server, watch your server verify it and unlock the entitlement, and you have tested the join that fraud usually attacks, not just the pretty part on the screen.

Real payment methods bring one more thing an emulator cannot, the security step in the middle. A real card, a bank, or a carrier charge will often trigger a one time code or a bank verification prompt, and that code arrives by sms on the number seated in the phone. On a device with no real sim there is nothing to receive it, so you stub the step and pretend. On a real cloud phone the code lands on the real Singapore number in the handset, and because the phone is reachable over adb your test can read it and enter it, covering the exact step where real checkouts stall.

One test, the whole fleet

Once one phone works, the fleet is where the real bugs surface. The same purchase test can run across a Singtel phone, a StarHub phone, and an M1 phone, on different accounts in different states, all in one pass. A buyer on one carrier or one account tier can meet a payment method or a price the others never see, and that is precisely the kind of difference a single emulator flattens into nothing. Because every phone answers over its own adb endpoint, you wire the purchase path into your build and let a row of real Singapore phones attempt a real checkout before you sit down in the morning.

Where the line is

This is for testing your own app, your own purchases, on accounts you legitimately control, so you can ship a checkout that actually works for the customer who pays you. It is a way for an honest team to see the real path a real buyer walks. A real phone will not let you skip Google’s test tracks and console setup, it will not stop a real card from being charged if you choose to use one, which is why the license testers exist, and it will not fix a bug in your own server verification, it will only show it to you honestly. It removes the fake in the foundation. Everything on top is still yours to get right.

Try it on real phones

The reason teams do not just keep a drawer of real phones is that a device lab is a grinding job. Every account wants its own real Google sign in, every carrier needs its own sim that costs money every month, prepaid lines need topping up, every handset needs charging without cooking its battery, its updates, and a way to stay reachable over adb from wherever your build runs. cloudf.one is that fleet, run so you do not have to. Real Samsung handsets in Singapore on dedicated hardware, each with a persistent Singapore mobile ip on a real carrier sim across Singtel, StarHub, M1, and Vivifi, an adb endpoint per phone, an api to list and lock phones, and browser control. Not an emulator, not a datacenter address, not a laptop wearing a Singapore label, a genuine certified phone that Google Play trusts because it is a genuine phone. Start at cloudf.one and use code YT30 on your first month.

Test your code on the free tools and keep that layer fast. But the real price, the real local payment methods, the integrity check, the code in the middle, and a subscription that renews over real days only behave on a real device, in a real country, on an account that persists. A real Singapore cloud phone runs your purchase and subscription tests on genuine hardware in the market you actually sell into, so the pass finally means the moment a customer pays will work for the customer you really have.

Get new guides and videos first — join the Telegram channel.

40% off until 31 December 2026
Real phones in Singapore, each with its own mobile IP.
Introductory price until 31 December 2026. A dedicated phone straight away, no queue.