Unsolved Getting started with QtPurchasing in Qt 6
-
I'm looking to implement in-app purchases and recurring in-app subscriptions in my app. Ideally I'd like to provide cross-platform support (App Store for iPad + Microsoft Store for Windows 10 desktop). Worst case, at least subscriptions in iOS initially.
Where is QtPurchasing at with Qt 6?
I've been unable to find much when searching:
- this getting started page which covers purchases of consumables and unlockables, and restoring purchases. Nothing about subscriptions.
- several links to messages in the forums from 2019 and earlier, all saying something along the lines of "This is pretty new. Go ask the interest mailing list."
- this new features in Qt 6.0 page says that QtPurchasing has been "removed and not planned to be developed further." But the above 'getting started' page is specifically for Qt 6 and makes no mention of it being discontinued. Which is confusing.
I'm guessing things have moved on a certain amount since 2019?? Can someone provide an update? And are there any tutorials out there to help with upskilling? Plus info about how to avoid common pitfalls?
Or should I be avoiding QtPurchasing and attempting to roll my own? 🙄
-
Hi Paul,
this might be a little too late to help you, but I am posting this anyway for anybody else stumbling across your question.
My impression so far is, that there will be no module supplied by Qt for In-App-Purchases.
So I went ahead and wrote something myself, that I am sharing under the MIT license. It can be found on https://github.com/moritzstoetter/qt6purchasing
Implementation is rather basic and subscriptions are not covered yet, but it should be quite easy to add that.
-
@morst Thank you for posting this. As it happens I haven't started work on the purchasing part of my app. When I get there I'm certain your repo will be very useful in getting me going. If I'm able to extend it for subscriptions I'll fork and submit a PR.