Day 8: How Unshrimp Added In-App Purchases Without Building a Backend From Scratch
Add one-time purchases to your app on Google Play and the App Store without building a backend from scratch. Cloud Code verifies every purchase and grows automatically, App Database saves it, and Remote Config changes what you sell without an app store review.
Watch the full tutorial or read the summary below
Overview
Day 8 of the Unshrimp build: an app that nags you to fix your posture, built prompt by prompt on AppAmbit.
In this video, Unshrimp adds a lifetime Pro plan. Users buy Pro with a single payment on Google Play or the App Store and keep it for life.
Selling an upgrade like this takes more than a Buy button. Behind it, every purchase has to be verified, saved, and given back to people who already paid. In Unshrimp, an AI assistant set up all of that in AppAmbit with two requests, and each step uses a different AppAmbit MCP Tool.
First, the purchase is verified by Cloud Code before Pro unlocks, so nobody can unlock Pro by modifying the app. Cloud Code also grows automatically as more people buy, and you pay only for the Cloud Code you use. Next, the purchase is saved in AppAmbit App Database, so people who already paid can get Pro back with the Restore button. And if your app needs more databases later, AppAmbit lets you create as many as you need. Finally, the sale is managed with Remote Config in the AppAmbit dashboard. There you decide when the Buy button appears and which product it sells, and users get the update the next time they open the app, without installing a new version.
In This Episode
- A lifetime Pro plan that users buy on Google Play with a single payment, verified by Cloud Code before Pro unlocks, so nobody gets Pro without paying
- App Store purchases saved in the same AppAmbit App Database, so you don't build a second backend for iOS
- No server to set up or maintain: Cloud Code grows automatically as more people buy, and you pay only for the Cloud Code you use
- Android and iPhone share the Pro screen and the Buy button, so you build the Cloud Code purchase function for both phones at the same time
- Each purchase is completed in the store only after AppAmbit App Database saves it, so a user is never charged for a purchase that wasn't recorded
- A Restore button that gives Pro back to people who already paid, for example on a new phone, without paying again
- Every purchase saved in AppAmbit App Database with the user, the store, and the product, so you always know who bought what
- The sale managed with Remote Config in the AppAmbit dashboard: you turn the Buy button on and choose the product, and users get the update the next time they open the app, without installing a new version
Chapters
- 0:00 A lifetime plan with no subscription
- 0:12 An app that runs entirely on AppAmbit
- 0:26 Every purchase verified by AppAmbit
- 0:32 Google Play purchases checked with Cloud Code
- 0:52 The App Store on the same setup
- 1:15 Buying on Android
- 1:32 Buying on iPhone
- 1:42 Everything already in one place
- 1:51 Cloud Code gives and restores Pro
- 1:59 Every purchase saved in App Database
- 2:09 Remote Config turns sales on
- 2:18 One setup for both stores
- 2:25 Build yours on AppAmbit
More in the Series
Links
Frequently Asked Questions
Q Why verify purchases in AppAmbit instead of in the app?
Anyone can modify an app, so a check inside it can be skipped. That is why Unshrimp keeps every purchase in AppAmbit App Database, linked to the user's account, and AppAmbit Cloud Code uses that record to verify the purchase before Pro unlocks. Because the purchase is saved in AppAmbit and not on the phone, Pro stays with the account even if the user changes phones, since it was paid for once, for life.
Q Do I need a separate setup for Google Play and the App Store?
No. Both stores use the same Cloud Code function and the same database table in AppAmbit.
Q Can people who already paid get Pro back?
Yes. A Restore button finds the purchase saved in AppAmbit App Database and unlocks Pro, without paying again.
Q Can I change what I sell without a new release?
Yes. In Unshrimp, whether the Buy button appears and which product it sells are not written in the app's code. They are settings in AppAmbit Remote Config, so you change them from the AppAmbit dashboard. Users get the update the next time they open the app, without installing a new version, and you don't have to wait for the store's review.
Q Can I see where buyers stop or what went wrong?
Yes. Analytics and Crash Reports are in AppAmbit too, so you can see the full story of what a user did: the screens they opened, the steps they took, and any error at the end.
Ready to get started with AppAmbit?
Monitor your mobile apps with real-time crash reporting, analytics, and app distribution.
Start Free Trial