IAP IN UNITY Easy Integration for BEGINNER! 2023 (UNITY, GOOGLE PLAY AND TESTING!!)

  Переглядів 30,978

Coco 3D

Coco 3D

10 місяців тому

🚀 Unleash Your Game's Potential! IAP in Unity Made Easy for Beginners! 🎮💰 2023 Tutorial (Unity, Google Play, and Testing!) 💡
Are you a budding game developer looking to skyrocket your revenue? Look no further! 🔥📈 Join us as we dive into the world of How-to Unity in very simple steps and this time we are covering In-App Purchases (IAP) in Unity so check-out this video till the end and unlock a treasure trove of monetization opportunities!
🔑 Discover the secrets of seamless integration with step by step process explained in this video. No prior coding experience required! 🌟
🔧 Boost your game's earning potential by harnessing the power of Unity's intuitive IAP system. This video covers everything you need to know, from creating virtual goods to implementing purchase flows that captivate players and maximize your profits! 💸💎
📱 Dive into the realm of Google Play, tapping into millions of potential users. In this video you will know how to effortlessly connect your Unity game to the Google Play Console, ensuring a smooth and secure purchasing experience for your players worldwide! 🌍✨
🛠 Worried about testing? Don't be! This video start from scratch and covers all expects of testing to ensure flawless IAP functionality. You'll be confident that your in-app purchases are flawless, leaving players eager to unlock premium features! 🎁🎮
📺 Don't miss out on this opportunity to monetize your Unity game effectively! Stay ahead of the game and set your sights on success in 2023! 📈✨
🔥 Ready to level up your game development skills? Hit that SUBSCRIBE button now and let's dive into the world of *COCO 3D*! 💪🔥
Remember to like, subscribe, and ring the notification bell to join our ever-growing community of game developers mastering the art of How-to Unity! 🎉🔔💻
All important Links:
Google play Subscription info: support.google.com/googleplay...
GitHub : github.com/Coco3D/IAP_Android...
Discord: / discord
If you have any doubt or suggestion let me know in the comment box.
Thanks for watching!!.👍
NOTICE: We have to upload our first build in Play store with IAP package inside it which will automatically ads the "BILLING PERMISSIONS", otherwise we will be unable to create any product on the google play server.
*LOCALIZED PRICE *
If you want to show Localized price to your user , then simply add this function in your script and pass in your product id, this function will return a string with ( Price + Currency code ),
For exp: 1.99 USD or 1.99 INR etc (Depends upon the country)
public string ReturnLocalizedPrice(string id)// Product id
{
Product p = m_StoreContoller.products.WithID(id);
decimal price = p.metadata.localizedPrice;
string code = p.metadata.isoCurrencyCode;
return price + " " + code;
}

КОМЕНТАРІ: 248
@petrow_
@petrow_ 7 місяців тому
There will always be an Indian who knows how to do anything you need. Thanks so much!
@Coco-3D
@Coco-3D 7 місяців тому
Haha, Thanks for Watching.
@maxbiagi3091
@maxbiagi3091 7 місяців тому
​@@Coco-3DPlease, its possible make like time limited daily purchase? Examples, like player want double his score in game 2x for 24hours. ? So he just click on the purchase icon, just pay like 0,10USD and this will be runing like 24hr?
@Coco-3D
@Coco-3D 7 місяців тому
@@maxbiagi3091 From what i understand is you want to double the player score for 24 hours after 0.10USD payment. In that case all you have to do is create a subscription item(1 day Time period), and if player is subscribed then his score will be doubled and when subscription is expired just put it back to orignal value.
@maxbiagi3091
@maxbiagi3091 7 місяців тому
@@Coco-3D Ok thank you ♥️. You programing also for order? Some contact to you?
@Coco-3D
@Coco-3D 7 місяців тому
@@maxbiagi3091 Ya i do clients work, you can contact me on discord and send me your requirement in personal chat. discord.gg/fpEknVm9rP or you can email me at thecoco3d@gmail.com
@Eazy666
@Eazy666 9 місяців тому
As a new channel, you are doing incredible! I wish you good fortune and never stop making high-quality content :)
@Coco-3D
@Coco-3D 9 місяців тому
Thank you soo much , It means a lot to me.❤
@Lasheen419
@Lasheen419 Місяць тому
Great video, have tried 3 other tutorials and yours is by far the best
@DotaEffect
@DotaEffect 3 місяці тому
Incredible video as a Software Lead i would like to say seeing these good tutorials making me happy because people uploading bunch of nonsense stufff most of the time Keep it up buddy !!
@syedmeesumalizaidi2152
@syedmeesumalizaidi2152 5 місяців тому
Great video indeed ❤ usually i got bored with the long videos but i followed the whole video...❤
@Coco-3D
@Coco-3D 5 місяців тому
Thanks for watching
@playfeelgames5583
@playfeelgames5583 7 місяців тому
great work man you are incredible. Wish you lots of success. thank you very much! Subscribed.
@Coco-3D
@Coco-3D 7 місяців тому
Thankyou soo much☺
@user-be3lk7pn4r
@user-be3lk7pn4r 6 місяців тому
Thanks an easy way to implement the IAP for the beginers
@366khan
@366khan 4 місяці тому
Great job. I wish you continued success.
@hafizsabir-of8sw
@hafizsabir-of8sw 4 місяці тому
i really love your videos and often recommend to friends
@betobravorodrigo1324
@betobravorodrigo1324 5 місяців тому
WOW Nice tuto. Many thanks for it. It helped me a lot man. Really great job.
@Coco-3D
@Coco-3D 5 місяців тому
Thankyou so much for watching.
@betobravorodrigo1324
@betobravorodrigo1324 5 місяців тому
I have a question for you. This code will work on ios with a correct app store configuration?. Thank again.@@Coco-3D
@user-nj3sv5ge3r
@user-nj3sv5ge3r 6 місяців тому
Thank you for a great content, really clarified everything
@Coco-3D
@Coco-3D 6 місяців тому
Thank you so much.☺
@sigridopps3049
@sigridopps3049 4 місяці тому
very straightforward. i like that.
@brotala4794
@brotala4794 20 днів тому
Good tutorial!! Thank you :)
@isashadmani4874
@isashadmani4874 3 місяці тому
clear instruction, thanks!
@golusharma5013
@golusharma5013 10 місяців тому
Loved it ❤❤❤, best video.
@Coco-3D
@Coco-3D 10 місяців тому
Thank you so much
@user-iv5ks1lc6h
@user-iv5ks1lc6h 7 місяців тому
Perfect tutorial!
@user-tq2mv8eb1k
@user-tq2mv8eb1k 10 місяців тому
Amazing tutorial, thanks for the video.
@Coco-3D
@Coco-3D 10 місяців тому
Thanks, Your Welcome😀
@gabrielbrito2815
@gabrielbrito2815 6 місяців тому
you are a god! only tutorial that worked here haha although you didn't show some parts in the video, especially in the inspector what to fill in the data, payload and payloaddata part, so I just removed these parts from my code, but it worked for me haha thanks anyway! !!!
@enginefire
@enginefire 8 місяців тому
Great work man, you helped me solve my biggest issues. Wish you lots of success.
@Coco-3D
@Coco-3D 7 місяців тому
Thanks a lot 😇
@jayantbarthwal4470
@jayantbarthwal4470 10 місяців тому
Amazing video , completed all aspects. Specially the subscription.❤❤
@Coco-3D
@Coco-3D 10 місяців тому
Thanks
@flurinjenal374
@flurinjenal374 8 місяців тому
Did you manage to get the subscription working?
@jayantbarthwal4470
@jayantbarthwal4470 8 місяців тому
@@flurinjenal374 Yes
@angparodi
@angparodi 8 місяців тому
Perfect tutorial, thank you very much! Subscribed.
@Coco-3D
@Coco-3D 8 місяців тому
Thanks for watching
@technot8570
@technot8570 7 місяців тому
Great work man i really like your effort hope your channel will finds its good fortune.👌👌
@Coco-3D
@Coco-3D 7 місяців тому
Thanks a lot! Your support means the world to me. I'll keep working hard. 😊🙌
@maydinunlu
@maydinunlu 8 місяців тому
The best Unity IAP video on youtube!
@Coco-3D
@Coco-3D 8 місяців тому
Thank you so much.
@tahirdevlog2047
@tahirdevlog2047 Місяць тому
best youtuber ever!
@gamedevelopercat
@gamedevelopercat 7 днів тому
Thanks 🎉
@flurinjenal374
@flurinjenal374 9 місяців тому
Subbed! Best tutorial.
@Coco-3D
@Coco-3D 9 місяців тому
Thanks ❤
@omerguleryuz1115
@omerguleryuz1115 3 місяці тому
Superb video
@lsdevelopment7055
@lsdevelopment7055 2 місяці тому
Great Channel.
@thetakashi2862
@thetakashi2862 10 місяців тому
Best video for IAP in unity
@Coco-3D
@Coco-3D 10 місяців тому
Thank you 😍
@sat_ech6417
@sat_ech6417 8 місяців тому
Best IAP tutorial u ever watch thank you
@Coco-3D
@Coco-3D 8 місяців тому
Thanks for watching☺.
@grantdigby2408
@grantdigby2408 6 місяців тому
Exactly what I was after, really useful. For some reason I got charged the in app fee.. I'm on the internal testing track, maybe I missed a step to set up a test payment? Anyways, it proved it worked although I am nervous to test it again :)
@jg0328
@jg0328 5 місяців тому
Thanks!!
@Coco-3D
@Coco-3D 5 місяців тому
You're welcome☺
@mibforunity
@mibforunity 8 місяців тому
Amazing tutorial, thanks
@Coco-3D
@Coco-3D 8 місяців тому
Thanks for watching !
@milosloncaric7079
@milosloncaric7079 8 місяців тому
Keep going buddy🎉
@Coco-3D
@Coco-3D 8 місяців тому
Thanks bro😇
@thetakashi2862
@thetakashi2862 10 місяців тому
Amazing video😊😊.
@Coco-3D
@Coco-3D 10 місяців тому
Thank you so much!!
@soundsliketomorrow6200
@soundsliketomorrow6200 3 місяці тому
Thanks for walking us through this. Quick question, does my google play console subscription apply to every version I upload under that same project or do I need to create a new one each time I upload a new version/track to google console?
@richardmichael2410
@richardmichael2410 7 місяців тому
Great work man. I need to use IAP for Amazon Store, what changes do I have to make for this to work with Amazon Store.
@adkinsy85
@adkinsy85 2 місяці тому
I thoroughly enjoyed your in-app purchase video; it was incredibly helpful! I'm reaching out again for further assistance, this time specifically regarding server-side verification using the Google Play Developer API. Essentially, I need to validate receipts for in-app purchases made within the Google Play Store within my Unity game. This includes verifying consumable, non-consumable, and monthly subscription purchases, alongside the ability to detect refunded purchases Thank you for your time.
@Coco-3D
@Coco-3D 2 місяці тому
Hi, Thanks for becoming a member ❤, But unfortunatly i haven't implemented server side verification yet in any of my games. And due to lack of knowledge in that area i would not be able to help you right now, But thanks for your support.❤
@nguyenduccong2288
@nguyenduccong2288 7 місяців тому
Can you create a video about how to work on which subscription offers?
@DreamSomniasRQ1317
@DreamSomniasRQ1317 7 місяців тому
Hi i have question when i upload the apk of my game in google play console does it publish to user already or we can set it as testing first?
@BakrpifyStudio
@BakrpifyStudio 2 місяці тому
Awesome. Bro, I can make offline games only but don’t have enough knowledge. If I want to become a progrmmer like you speacially on Unity, how should I start learning? Do you assist me the path way?
@calvinms7503
@calvinms7503 9 місяців тому
I am in a strict deadline. I hope investing 30 mins of time in this video worth it! Godspeed
@calvinms7503
@calvinms7503 9 місяців тому
ArgumentException: JSON parse error: Invalid value. UnityEngine.JsonUtility.FromJson (System.String json, System.Type type) (at :0) UnityEngine.JsonUtility.FromJson[T] (System.String json) (at :0)
@Coco-3D
@Coco-3D 9 місяців тому
@@calvinms7503 Hi, Thanks for watching, It looks like there is some problem with json utility , can you send me the line of code where it points the error. or you can give it a read if you like From Json: docs.unity3d.com/ScriptReference/JsonUtility.FromJson.html To Json: docs.unity3d.com/ScriptReference/JsonUtility.ToJson.html
@calvinms7503
@calvinms7503 9 місяців тому
I have not get the email from Play Console for downloading di APK, so I made the APK by my self, there should not be a difference, right? When buying, I got an error: The version of the application is not configured for billing through Google Play.
@Coco-3D
@Coco-3D 9 місяців тому
​@@calvinms7503 If you have created the IAP products in the google play server, then everything is perfect. You can simply load the apk into your phone. And about this error: I also got this error few days back when i was running my apk in someone else phone but in my phone it worked perfectly , so you can try running your apk in different device. According to me i think you have done everything correctly.
@calvinms7503
@calvinms7503 9 місяців тому
Update: It is working :D Thank youuuuuu
@SulemanSunny197
@SulemanSunny197 2 місяці тому
Greetings Bro, the same thing will work while uploading on play store with codeless IAP....In short, there is a difference in with code or without code while uploading on play store or not
@hossamkhyati-bc2zk
@hossamkhyati-bc2zk 2 місяці тому
i have a question i mean prduct id must match the one in gg play and is it important to do liscence in unity or not ?? how google call the product id in console and in the game
@KademirGames
@KademirGames 8 місяців тому
very nice
@Coco-3D
@Coco-3D 8 місяців тому
Thanks
@Jocke155
@Jocke155 29 днів тому
Do you also need to implement a way to unsubscribe from within the app itself? Or is that handled via Play Store?
@bonfaceosuka
@bonfaceosuka 8 місяців тому
I had a problem with IAP because the payments were being refunded. What could be the issue ?
@TheFirstEldenLordIsMe
@TheFirstEldenLordIsMe 2 місяці тому
Implement a server-side validation of purchase receipts to prevent tampering and ensure consistency across devices please using unity or google please.
@awesome1337
@awesome1337 4 місяці тому
Use this and it will work on IAP 4.10 = using UnityEngine; using UnityEngine.Purchasing; using UnityEngine.Purchasing.Extension; using UnityEngine.UI; using System; using System.Collections; using System.Collections.Generic; using System.Numerics;
@andryhappy5356
@andryhappy5356 2 місяці тому
I was struggling on this... You saved me, thank you very much 🙏😄
@AlMgAgape
@AlMgAgape 8 місяців тому
I need to upgrade Play Billing Library to version 5, because my version is 4.0.0, so icant upload my app to google play console, what i must to do?
@suaygiho
@suaygiho 3 місяці тому
給自己的筆記 5:40 開始設定專案 8:15 基本開始程式撰寫 16:50 新增付費檢查機制 20:24 google平台設置商品
@tigerjustice
@tigerjustice 9 місяців тому
Thank you for your tutorial. it's very helpful. And how is the IAP for iOS done?
@Coco-3D
@Coco-3D 9 місяців тому
95% of the things are same, I think all you have to do is just create IAP product in the App store.
@Sean-zc2nf
@Sean-zc2nf 20 днів тому
quick question, will this code work for in app purchasing with ios?
@jeyanthnagarajan844
@jeyanthnagarajan844 Місяць тому
im only getting in app purchasing 4.1.5 version in package manager . not getting later versions. Can someone help
@dakshposhiya1710
@dakshposhiya1710 4 місяці тому
Hello Coco 3D, How to Show Item Price on Button?
@ardagenc
@ardagenc 9 місяців тому
Thanks for the tutorial. I can use these IAP integration for IOS app, right? I guess, I only need to add Restore Purchase button.
@Coco-3D
@Coco-3D 9 місяців тому
Yes, You can most likely use this video for iOS as well.
@NatureRiders8107
@NatureRiders8107 Місяць тому
bro please tell something about iap button and iap listner in iap unity please
@_ace55
@_ace55 9 місяців тому
Good video, I have a question tho, why don't you use the IAP Catalog feature to create the products?
@Coco-3D
@Coco-3D 9 місяців тому
Hi Thanks, I found it more simple, That's why ☺.
@anbelo
@anbelo 7 місяців тому
Hey, thanks for the vid. Is Unity support multi-quantity option? For me this option is greyed out, however, IAP Unity is showing the latest version..
@Coco-3D
@Coco-3D 7 місяців тому
Hi Your Welcome, Yes Unity does support Multiple Quantity, In the end part of the video, I have shown that. BTW where are you seeing that greyed out option in Play Console?
@nikakekelidze9638
@nikakekelidze9638 8 місяців тому
Do I need to upload new bundle first? Because I cannot create in app products or subscriptions on google console
@Coco-3D
@Coco-3D 8 місяців тому
Yes, you have to upload a bundle that should have IAP package inside it (which will add "Billing permission" to your app)
@LocNguyen-ir4ob
@LocNguyen-ir4ob 5 місяців тому
I am really looking forward to a video about a score leaderboard
@Coco-3D
@Coco-3D 4 місяці тому
Sure i'll make a video on that😇
@DrawingArtMagic
@DrawingArtMagic 3 місяці тому
If I buy source code on market place, how to set up the IAP?
@flurinjenal374
@flurinjenal374 9 місяців тому
Did anyone manage to get the subscription working?
@grumpysalmon4153
@grumpysalmon4153 4 місяці тому
Hello! Where can I add the price for each individual item?
@bshark8044
@bshark8044 3 місяці тому
I have a question, does it work if I make a game for a non-mobile computer?
@EventHorizonReports
@EventHorizonReports 3 дні тому
Can I use it to set up for ios?
@flurinjenal374
@flurinjenal374 8 місяців тому
Now I managed to get the consumables working, but the subscription not yet. If I buy the subscription in the build / internal testing, it throws the exception: "ProductUnavailable", although the product seems correctly initialized. Any ideas?
@Coco-3D
@Coco-3D 8 місяців тому
Can you please share the complete error statement.
@flurinjenal374
@flurinjenal374 8 місяців тому
@@Coco-3D Hi and thank you for your reply! There was not much more than the "ProductUnavailable" statement in the console. I found that it didn't catch my subscription product in the Play Console. I had to name the base plan ID differently to the subscription ID in Play Console (previously I used the same ID), then it worked. So far it looks good!
@flurinjenal374
@flurinjenal374 9 місяців тому
At 22:40: Where does the base plan ID come from? Do I need to set it in Unity somewhere or can I name it anyhow?
@flurinjenal374
@flurinjenal374 9 місяців тому
Does the product ID set in Unity need to match the ID of the subscription in Google Play or match the ID of the base plan in Google play?
@Coco-3D
@Coco-3D 9 місяців тому
@@flurinjenal374 1.For the base plan id , you can name it anything you like. 2. The Subscription product ID set in Unity need to match the Subscription ID in the Google play not the Base Plan ID.
@flurinjenal374
@flurinjenal374 9 місяців тому
@@Coco-3D Ok, thanks! I will test right now.
@flurinjenal374
@flurinjenal374 9 місяців тому
Hm, everything works with the fake store but as soon as I test the final build, it throws a warning: "Unavailable product" with a reference to the ID which I set. I named the subscription ID as well as the base plan ID the same. What could the problem be? I use the IAP catalogue in Unity.
@zeggxr1539
@zeggxr1539 8 місяців тому
are restores provided by Unity, or should we do it manually ?
@Coco-3D
@Coco-3D 8 місяців тому
IAP automatically restore product's for Google Play and Universal Windows Applications during the first initialisation. For IOS, We have to create a dedicated button for that.
@Ahmada404
@Ahmada404 8 місяців тому
hai, nice tutorial. i have a problem about subscribe system when I uploaded my game in google console closed testing, after the subscribe is over (that is 3 month but turn to 10 minutes) the value that I set true when user have subscribe its not turn to false, any suggest? I really appreciate it. thank you
@Coco-3D
@Coco-3D 8 місяців тому
Hi, For that i have created a "CheckSubscription" function in my script that checks the subscription is currently active or not. That worked for me when i tested it in internal testing.
@johndee2091
@johndee2091 3 місяці тому
Is tutorial covert receipt validatiom so that google do not automatically refund after 72h
@lemangkuk
@lemangkuk 7 місяців тому
I have a question, for example, If I make a purchase button for remove ads, or unlock more content, how does the state save for removing ads and unlocking more content? for example if user made the purchase and they uninstall the app from the phone and install back again, will the remove ads or, unlock more content considered purchase by the user and they don't have to buy again?
@Coco-3D
@Coco-3D 7 місяців тому
Yes if your remove ads is a Non Consumable purchase then user should not buy it again, and i think this code can handle that after uninstall.
@sagrgywejhxcvx
@sagrgywejhxcvx 3 місяці тому
how get "test card, always approves"??? my game asks for real payment (nice tutorials)
@mariusstefan792
@mariusstefan792 7 місяців тому
Hello. Nice tutorial. A question. if the user asks for the money back (and according to our policy, if they haven't used the purchased item within 14 days, we return the money and delete the purchased item), where do I give them the refund? Is there a button found on Stripe but on Google play (or unity - I'm not sure which account the money ends up in)?
@Coco-3D
@Coco-3D 7 місяців тому
I think It's automatically managed by Google Play Store. Within 48 Hours if someone wants refund then they can apply through Google Play. Check this: support.google.com/googleplay/answer/2479637?hl=en#:~:text=Request%20a%20refund%20for%20recent%20purchases
@GraysonVoisinet
@GraysonVoisinet 7 місяців тому
Recently Google asks to update to Google Play Billing 6.0. I only see version 3 unity package online or version 4 for this in app purchase library. Where to get google play billing 6.0 for unity?
@tonytran07
@tonytran07 9 місяців тому
Coco My project is in landscape mode only Yet, when i click to buy, it opens the IAP in Portrait mode! What's up with that?
@Coco-3D
@Coco-3D 8 місяців тому
My Project was also in Landscape mode, the only thing i did is, I changed my device orientation in "Resolution&Presentation" inside other settings. And it worked. You can try to do exactly same as i did.
@panpam-educar-jugando
@panpam-educar-jugando 6 місяців тому
An amazing video! It has helped me a lot 😃 I wanted to ask you a very important question ☺ I hope someone can help me. How do you set up the option to give the user, for example, 7 days of trial before charging them for the subscription? Thank you very much! 😘
@Coco-3D
@Coco-3D 6 місяців тому
Thank you so much☺. For trial period i think we have an option in PlayStore to provide that. All we have to do is just to "Enable it" and we can check the status of our subscription with this script. And Google itself will also not charge the user until trial is over, we don't have to worry about it, but ya i have not tested it. 😄
@panpam-educar-jugando
@panpam-educar-jugando 6 місяців тому
@@Coco-3D Thank you very much for getting back to me! ☺ I was driving myself crazy searching for information, thinking I had to do it with code 😑 After hearing what you said, I went back to do a search, and quickly found the answer on a Unity forum 😉
@Coco-3D
@Coco-3D 6 місяців тому
@@panpam-educar-jugando That's Great☺
@Tonbeans
@Tonbeans 9 місяців тому
Hi, in my In-App Purchasing configuration, when I input my Google License Key, it's saying "You are not authorizEd to set the license key."
@Coco-3D
@Coco-3D 9 місяців тому
Actually that step is only needed to show your sales through IAP in unity's dashboard. And even if you leave it blank IAP will work properly. But if you want it, you can try these steps 1.Directly fill your license key in unity dashboard 2.Try restarting unity. 3.Leave it blank and try to fill key after some time. good luck!!
@user-sy1qi5bx7w
@user-sy1qi5bx7w 5 місяців тому
Hi! I am confusing about one thing. The money that is Revenue from in app purchases goes to your unity account (the same as your revenue for unity ads for example) o goes to a google account?
@Coco-3D
@Coco-3D 5 місяців тому
It goes to the Google account ☺.
@hanzyusuf
@hanzyusuf 6 місяців тому
I have a question but before that I'd like to appreciate the quality of your content :) Your explanation and way of teaching is better than any other creator. Graphics, speech clarity, explanation, and the best of all, your modular coding skills ! everything is top notch ! I actually just need to know why you implemented 'multi-quantity purchase' in your code. I read that unity doesn't yet support multi-quantity purchases, it's in their docs and in the forum (answered by a mod). But that's another case. In the docs, there is a warning that specifically warns to not enable it in the play console since unity doesn't support it. My option is greyed out in the play console. Below it, it says "Billing library version 4.0+ is required to use this feature". I am sure this is permanent info message since the Unity Purchasing 4.10.0 (which i am using) uses play billing 5.0+ library. Any idea ?
@Coco-3D
@Coco-3D 6 місяців тому
Hi, First of all thank you so much for appriciation, you made my day.☺ About multi-quantity, it was not planned, but i mistakenly enabled it and then it didn't worked, so i thought i should include it too and ya i remember it took me 2-3 days to figure out correct way of doing it. I didn't knew unity does't support that, may be that's why it take that much time. We'll I don't remember my IAP version but i downloaded the latest one from package manager and it showed me the multi-quantity option in play console. And i have no idea why it is not showing in your play console.
@user-di9yl3sl2b
@user-di9yl3sl2b 4 місяці тому
hi i want to know about it too, i just do the same for my game water sort puzzle just added inapp purchase for non consumeable ads for forever, now the question is about when i uninstall the game and again install on no ads button click you have already own this item even ads are again start showing in my app. even if i install my game on any other device with same account i purchased inapp i got same answer already own this item and ads are showing how can i handle this. my script is
@Coco-3D
@Coco-3D 4 місяці тому
Have you called the "checkNonConsumable" function which check that you have the product receipt or not. I have tested that function for no ads and it work perfectly.
@user-xd7jt2nm1r
@user-xd7jt2nm1r 9 місяців тому
good tutorial! and it's made recently. But when i copy and paste license key into Services/In-App-Purchasing and clicked the button, Unity says 'You are not authorized to set the license key'. Can you help me?? I'm using Unity 2022.3.4f version and 4.9.3 in app purchase package
@Coco-3D
@Coco-3D 9 місяців тому
Thanks , Actually that step is only needed to show your sales through IAP in unity's dashboard. And even if you leave it blank IAP will work properly. But if you want it, you can try these steps 1.Directly fill your license key in unity dashboard 2.Try restarting unity. 3.Leave it blank and try to fill key after some time. good luck!!
@zLuoManhwas
@zLuoManhwas 8 місяців тому
Funciona correctamente sin necesidad de colocar algún identificativo de a qué cuenta debe ir el dinero?
@beastbhaiff9649
@beastbhaiff9649 8 місяців тому
please reply(can we connect our unity game with other api like 4poch)
@Coco-3D
@Coco-3D 8 місяців тому
Well I am not sure, but if 4poch provide API's, so yes, you can integrate API in unity.
@tanvirulabrar1804
@tanvirulabrar1804 4 місяці тому
Did you make anything like trade licences for enable in app purchases in your app? If i have a playconsloe account can i Access in app purchases like this video? Or i have to do anything else?
@Coco-3D
@Coco-3D 4 місяці тому
Yes you can access in app purchas from play console , no trade licences is needed.
@tanvirulabrar1804
@tanvirulabrar1804 4 місяці тому
@@Coco-3D I live in Asia continent. So I'm a bit confused. Do you live on the continent of Asia?
@Coco-3D
@Coco-3D 4 місяці тому
@@tanvirulabrar1804 Yes, I live in India.
@siegfriedc2332
@siegfriedc2332 5 місяців тому
Great stuff. Quick question; how do u get the prices displayed in Unity to change value and currency based on the buyer's location? Is there a syntax for this?
@Coco-3D
@Coco-3D 5 місяців тому
Please check out the video description i have added a method for that, i hope it helps ☺
@siegfriedc2332
@siegfriedc2332 5 місяців тому
@@Coco-3D How do u use the function? I just get errors about the object reference not being set when I apply it to my product like this: ncProductText.text = ReturnLocalizedPrice(ncItem.price); Would much prefer to see this put into practice. In a future video, perhaps?
@Coco-3D
@Coco-3D 5 місяців тому
@@siegfriedc2332 Can you try this code ncProductText.text = ReturnLocalizedPrice(ncItem.id);
@siegfriedc2332
@siegfriedc2332 5 місяців тому
@@Coco-3D I found a different code in a forum which appears to possibly work. In the Unity builder, all my prices show up as $0.01 (which I'm hearing is how it's supposed to be?). Weird thing is, when I run the same version in internal testing, the prices show up as the original text I input in Unity before I added the local price code (in US dollars, even though I'm not in the US). Is this normal for Internal testing? Do the local prices only appear properly when u upload a closed testing build?
@Coco-3D
@Coco-3D 5 місяців тому
@@siegfriedc2332 Localized price does not work in unity editor (it gives $0.01), but it works in testing. Maybe you have to make your game live in production and after that it will work in testing (not sure just a guess)
@arminyousefi3262
@arminyousefi3262 9 місяців тому
Hello thank you for instruction i have a question,In app purcahse works properly on unity editor but when i build it and test it on android phone when i click on the buttons to purchase, nothing happens and plus i had a remove ads purchase that was working properly before but now when i click on it in android phone, it says this version of app is not configured for billing through google play, how can i solve this problem?
@Coco-3D
@Coco-3D 9 місяців тому
I think you have done everything correctly, just try to run your app in different android devices or upload your app in google play server and download it from there. I hope it helps.
@EmreUnes
@EmreUnes 24 дні тому
if u couldn't do this maybe you are using the .Net framework. , You should change it to 2.1 version
@sohailrazi2271
@sohailrazi2271 8 місяців тому
Hi, I have followed step by step all the video but having error ArgumentException: JSON parse error: Invalid value. Kindly let me know what this issue is?
@Coco-3D
@Coco-3D 8 місяців тому
This error basically says that, Json class is having trouble in converting either your "string to class" or "class to string", You can check the Github link in the description, There you can find the complete script that i wrote in this video.
@unityUser
@unityUser 5 місяців тому
Hi, can i use firebase to store the purchased items or subscriptions?
@Coco-3D
@Coco-3D 5 місяців тому
Yes, offcourse you can 😇
@emonikino
@emonikino 6 місяців тому
i'm assuming these purchases was done in sandbox/test mode, right? or was it purchased with real money? i'm familiar with unity ads but i never used unity iap so i have no idea how's the testing environment work.
@Coco-3D
@Coco-3D 6 місяців тому
Ya, all of these are testing no real money. And this is Google IAP not the Unity IAP. We are just implementing it inside Unity.
@emonikino
@emonikino 6 місяців тому
@@Coco-3D ooh, i see. thank you.
@zeeshanhaider9636
@zeeshanhaider9636 4 місяці тому
how to use unityads or iap for unity
@onurdemircan9214
@onurdemircan9214 6 місяців тому
Do we have to fill in data, payload, payload data in the editor? Also, I get an error says that "ArgumentException: JSON parse error: Invalid value.". There are variables called Json and Signature. Is the error about these variables. They are empty right now. Please, help me.
@Coco-3D
@Coco-3D 6 місяців тому
You don't need to fill data in any of the payload class, And about the error do not pass the empty variables it will throw excetion while parsing Json.
@aishwaryadavid7565
@aishwaryadavid7565 9 місяців тому
Great video, but i have stumbled upon a problem. My No-ads button works properly as long as i am the same scene. After switching scenes the product.hasReceipt returns false value even after successfully purchasing No-Ads item.
@Coco-3D
@Coco-3D 9 місяців тому
Thanks , Thats a weired problem , are you running it in the android device or in the editor ,as it is better to test it on a android device.
@aishwaryadavid7565
@aishwaryadavid7565 9 місяців тому
@@Coco-3D I made an internal testing track to check out the IAP. I have assigned the purchase button to gameObject.SetActive(false) once the purchase is successful or if the player has receipt. It works fine right after the purchase is done but as soon as I change the scene and come back the purchase button reappears(in editor as well and gives false value for product.hasReceipt). When I again click on the purchase button, google play says I have already purchased the item but since the button has reappeared after the purchase, the no ads perks get removed(which i believe is because of the same receipt validation issue) If you are interested in taking a look at my code I can post it here. I have also posted the issue in unity forum but can't post the link here since youtube was deleting it every time I tried. Thanks a lot for taking your time reading the issue.
@aishwaryadavid7565
@aishwaryadavid7565 9 місяців тому
​@@Coco-3DI have figured out the solution just now. It turns out that i had to disable pre-launch report in the play console and now product.hasReceipt works perfectly
@wescube-sz3ly
@wescube-sz3ly 8 місяців тому
hi , good vid , but when using your code in my game , i get a null reference exeption error eventho everything is assigned
@Coco-3D
@Coco-3D 8 місяців тому
Hi, Can you share some more info about that error.
@wescube-sz3ly
@wescube-sz3ly 8 місяців тому
@@Coco-3D Ahh hi , i figured it out already , i think i had to declare an IStoreListener before actually doing the rest of the code , eventho its not ever used . Can you belive that i am only 13 lol.
@BurnTilDeath
@BurnTilDeath 5 місяців тому
When I get to 20 mins in your video, where you start filling in the details for creating an in-app product, I get taken to a page that says "Your app doesn't have any in-app products yet To add in-app products, you need to add the BILLING permission to your APK" Is this something that needs to be coded in? Or is it just asking me to add my privacy policy and all the other hurdles Play Console wants (I haven't done the privacy policy yet: just wanted to try and get everything else set up first).
@Coco-3D
@Coco-3D 5 місяців тому
You have to first upload a build (.aab file) that has IAP Package inside it , which automatically includes the Billing permission to your app, and then you will be able to create products on dashboard.
@BurnTilDeath
@BurnTilDeath 5 місяців тому
@@Coco-3D To the internal testing version? I already updated the one in my closed testing section, and it didn't change anything (the closed testing keeps complaining about the lack of a privacy policy). I'll try it with the internal testing upload...
@BurnTilDeath
@BurnTilDeath 5 місяців тому
@@Coco-3D Ok, yeah, got it to work. Play Console wasn't accepting my new build because I hadn't been changing the Bundle Version number. Thx!
@artdesireboutique
@artdesireboutique 4 місяці тому
Didn't work for me. Keep getting this error - Object reference not set to an instance of an object ShopScript.Consumable_Btn_Pressed () I have it as on button press load ShopScript object Consumable, so any ideas why I am getting this error?
@sugargamerr
@sugargamerr 12 днів тому
Y it's not showing in local currency y in its showing USD
@alanacevedo7330
@alanacevedo7330 6 місяців тому
UnityPurchasing.Initialize(this, builder); is absolete. any ideas to correct? please
@Coco-3D
@Coco-3D 6 місяців тому
Hi , I just updated the code in Github, please check it out.
@sjw806
@sjw806 2 місяці тому
@@Coco-3D Thanks!
@pancake8199
@pancake8199 9 місяців тому
Can i ask a question? If the application was uninstall and i will install it again, will my purchase my item will not disappear?
@Coco-3D
@Coco-3D 9 місяців тому
Yes ,I think your items will not disappear.👍
@pittbulllover9606
@pittbulllover9606 3 місяці тому
Where did the money come
@onurdemircan9214
@onurdemircan9214 6 місяців тому
According to what currency should I type the price in the script? In google play console, the default currency is turkish liras for me. In the script, what should I type? According to Turkish liras or dollars? Can anyone help me, please?
@Coco-3D
@Coco-3D 6 місяців тому
Name, Description and price are not actually used inside the script only "ID" is important, So I'll suggest you to enter the amount in the same format as you have entered in PlayConsole, Just for better understanding , And also read the video description if you want to implement Localized pricing. 👍