- Home /
How to change the quantity of an IAP?
Hello Comm-Unity,
I am currently trying to implement IAP into an Android/iOS app in Unity 5.6, and I've almost gotten the entire thing to work. However, I need to be able to charge someone for multiple in app purchases at the same time. Is that possible and, if so, how would I go about doing that? Thanks!
Tiger27
Answer by JamesGameDev · Aug 31, 2019 at 06:00 PM
Hey CrayzeeTrain,
Yeah, I considered doing that. After some consideration though, I decided it would probably be easier (and more beneficial to the UX) to use another IAP system. I ended up choosing Payment Wall (https://www.paymentwall.com) and just calculating it so their processing fee didn't change profits. Also, they have a Unity Asset which is extremely helpful for integrating it. But, it could also reduce UX if you just want a simple "click and buy" functionality. It's up to you.
Asset: https://assetstore.unity.com/packages/add-ons/services/paymentwall-unity-sdk-50682
Glad to know there's a good alternative. Thanks for the reply, I'll probably stick with my workaround for now but if it gets cumbersome I'll look into something like Payment Wall... seems pretty silly that there's not something in place but it looks like some or all of the stores themselves don't support quantity purchase. Oh well.
Answer by GrayLightGames · Aug 30, 2019 at 10:36 PM
Hi Tiger27, did you ever get an answer on this? The best I've been able to come up with is to have separate IAP for quantity purchases... so if I have a powerup consumable, I'll make 5 IAP's with these ID's: 1POWERUP, 2POWERUP, 3POWERUP, 4POWERUP, 5POWERUP
Then I'm limiting my users to purchasing 5 at a time and concatenating the quantity with the name portion of the ID when I send the purchase off. Then splitting the string when it comes back.
Not ideal, but it should work until Unity IAP supports multiple quantity purchasing.
But please, if you found a better way, I'd love to know.
Your answer
![](https://koobas.hobune.stream/wayback/20220612165516im_/https://answers.unity.com/themes/thub/images/avi.jpg)