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

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

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.