Тёмный

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

Coco 3D
Подписаться 2,5 тыс.
Просмотров 37 тыс.
50% 1

🚀 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;
}

Опубликовано:

 

29 июн 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 260   
@Eazy666
@Eazy666 11 месяцев назад
As a new channel, you are doing incredible! I wish you good fortune and never stop making high-quality content :)
@Coco-3D
@Coco-3D 11 месяцев назад
Thank you soo much , It means a lot to me.❤
@petrow_
@petrow_ 9 месяцев назад
There will always be an Indian who knows how to do anything you need. Thanks so much!
@Coco-3D
@Coco-3D 9 месяцев назад
Haha, Thanks for Watching.
@maxbiagi3091
@maxbiagi3091 9 месяцев назад
​@@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 9 месяцев назад
@@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 9 месяцев назад
@@Coco-3D Ok thank you ♥️. You programing also for order? Some contact to you?
@Coco-3D
@Coco-3D 9 месяцев назад
@@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
@DotaEffect
@DotaEffect 5 месяцев назад
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 !!
@Lasheen419
@Lasheen419 3 месяца назад
Great video, have tried 3 other tutorials and yours is by far the best
@maydinunlu
@maydinunlu 10 месяцев назад
The best Unity IAP video on youtube!
@Coco-3D
@Coco-3D 10 месяцев назад
Thank you so much.
@brotala4794
@brotala4794 2 месяца назад
Good tutorial!! Thank you :)
@enginefire
@enginefire 10 месяцев назад
Great work man, you helped me solve my biggest issues. Wish you lots of success.
@Coco-3D
@Coco-3D 9 месяцев назад
Thanks a lot 😇
@angparodi
@angparodi 10 месяцев назад
Perfect tutorial, thank you very much! Subscribed.
@Coco-3D
@Coco-3D 10 месяцев назад
Thanks for watching
@user-be3lk7pn4r
@user-be3lk7pn4r 8 месяцев назад
Thanks an easy way to implement the IAP for the beginers
@technot8570
@technot8570 9 месяцев назад
Great work man i really like your effort hope your channel will finds its good fortune.👌👌
@Coco-3D
@Coco-3D 9 месяцев назад
Thanks a lot! Your support means the world to me. I'll keep working hard. 😊🙌
@playfeelgames5583
@playfeelgames5583 9 месяцев назад
great work man you are incredible. Wish you lots of success. thank you very much! Subscribed.
@Coco-3D
@Coco-3D 9 месяцев назад
Thankyou soo much☺
@syedmeesumalizaidi2152
@syedmeesumalizaidi2152 7 месяцев назад
Great video indeed ❤ usually i got bored with the long videos but i followed the whole video...❤
@Coco-3D
@Coco-3D 7 месяцев назад
Thanks for watching
@mustafaunsal2861
@mustafaunsal2861 Месяц назад
Yes, it is a useful Unity in-app purchase tutorial. Thanks...
@hafizsabir-of8sw
@hafizsabir-of8sw 6 месяцев назад
i really love your videos and often recommend to friends
@sigridopps3049
@sigridopps3049 6 месяцев назад
very straightforward. i like that.
@golusharma5013
@golusharma5013 Год назад
Loved it ❤❤❤, best video.
@Coco-3D
@Coco-3D Год назад
Thank you so much
@366khan
@366khan 6 месяцев назад
Great job. I wish you continued success.
@user-nj3sv5ge3r
@user-nj3sv5ge3r 8 месяцев назад
Thank you for a great content, really clarified everything
@Coco-3D
@Coco-3D 8 месяцев назад
Thank you so much.☺
@flurinjenal374
@flurinjenal374 11 месяцев назад
Subbed! Best tutorial.
@Coco-3D
@Coco-3D 11 месяцев назад
Thanks ❤
@user-iv5ks1lc6h
@user-iv5ks1lc6h 9 месяцев назад
Perfect tutorial!
@betobravorodrigo1324
@betobravorodrigo1324 7 месяцев назад
WOW Nice tuto. Many thanks for it. It helped me a lot man. Really great job.
@Coco-3D
@Coco-3D 7 месяцев назад
Thankyou so much for watching.
@betobravorodrigo1324
@betobravorodrigo1324 7 месяцев назад
I have a question for you. This code will work on ios with a correct app store configuration?. Thank again.@@Coco-3D
@sat_ech6417
@sat_ech6417 10 месяцев назад
Best IAP tutorial u ever watch thank you
@Coco-3D
@Coco-3D 10 месяцев назад
Thanks for watching☺.
@isashadmani4874
@isashadmani4874 5 месяцев назад
clear instruction, thanks!
@omerguleryuz1115
@omerguleryuz1115 5 месяцев назад
Superb video
@user-tq2mv8eb1k
@user-tq2mv8eb1k Год назад
Amazing tutorial, thanks for the video.
@Coco-3D
@Coco-3D Год назад
Thanks, Your Welcome😀
@lsdevelopment7055
@lsdevelopment7055 4 месяца назад
Great Channel.
@jayantbarthwal4470
@jayantbarthwal4470 Год назад
Amazing video , completed all aspects. Specially the subscription.❤❤
@Coco-3D
@Coco-3D Год назад
Thanks
@flurinjenal374
@flurinjenal374 10 месяцев назад
Did you manage to get the subscription working?
@jayantbarthwal4470
@jayantbarthwal4470 10 месяцев назад
@@flurinjenal374 Yes
@phamngocha2112
@phamngocha2112 Месяц назад
So useful and supper clear video tutorial
@thetakashi2862
@thetakashi2862 Год назад
Best video for IAP in unity
@Coco-3D
@Coco-3D Год назад
Thank you 😍
@milosloncaric7079
@milosloncaric7079 10 месяцев назад
Keep going buddy🎉
@Coco-3D
@Coco-3D 10 месяцев назад
Thanks bro😇
@gabrielbrito2815
@gabrielbrito2815 8 месяцев назад
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! !!!
@mibforunity
@mibforunity 10 месяцев назад
Amazing tutorial, thanks
@Coco-3D
@Coco-3D 10 месяцев назад
Thanks for watching !
@jg0328
@jg0328 7 месяцев назад
Thanks!!
@Coco-3D
@Coco-3D 7 месяцев назад
You're welcome☺
@thetakashi2862
@thetakashi2862 Год назад
Amazing video😊😊.
@Coco-3D
@Coco-3D Год назад
Thank you so much!!
@gamedevelopercat
@gamedevelopercat 2 месяца назад
Thanks 🎉
@tahirdevlog2047
@tahirdevlog2047 3 месяца назад
best youtuber ever!
@adkinsy85
@adkinsy85 4 месяца назад
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 4 месяца назад
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.❤
@grantdigby2408
@grantdigby2408 8 месяцев назад
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 :)
@awesome1337
@awesome1337 6 месяцев назад
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 4 месяца назад
I was struggling on this... You saved me, thank you very much 🙏😄
@calvinms7503
@calvinms7503 11 месяцев назад
I am in a strict deadline. I hope investing 30 mins of time in this video worth it! Godspeed
@calvinms7503
@calvinms7503 11 месяцев назад
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 11 месяцев назад
@@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 11 месяцев назад
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 11 месяцев назад
​@@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 11 месяцев назад
Update: It is working :D Thank youuuuuu
@KademirGames
@KademirGames 10 месяцев назад
very nice
@Coco-3D
@Coco-3D 10 месяцев назад
Thanks
@emilianocatalanfurbatto2228
@emilianocatalanfurbatto2228 Месяц назад
The tutorial is amazing, thanks for that ! I have only 1 question, what is skudetails ? Is it necessary ?
@nguyenduccong2288
@nguyenduccong2288 9 месяцев назад
Can you create a video about how to work on which subscription offers?
@soundsliketomorrow6200
@soundsliketomorrow6200 5 месяцев назад
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?
@tigerjustice
@tigerjustice 11 месяцев назад
Thank you for your tutorial. it's very helpful. And how is the IAP for iOS done?
@Coco-3D
@Coco-3D 11 месяцев назад
95% of the things are same, I think all you have to do is just create IAP product in the App store.
@richardmichael2410
@richardmichael2410 9 месяцев назад
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.
@Jocke155
@Jocke155 2 месяца назад
Do you also need to implement a way to unsubscribe from within the app itself? Or is that handled via Play Store?
@BakrpifyStudio
@BakrpifyStudio 4 месяца назад
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?
@AlMgAgape
@AlMgAgape 10 месяцев назад
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?
@TheFirstEldenLordIsMe
@TheFirstEldenLordIsMe 4 месяца назад
Implement a server-side validation of purchase receipts to prevent tampering and ensure consistency across devices please using unity or google please.
@hanzyusuf
@hanzyusuf 8 месяцев назад
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 8 месяцев назад
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.
@SulemanSunny197
@SulemanSunny197 4 месяца назад
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
@GraysonVoisinet
@GraysonVoisinet 9 месяцев назад
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?
@ardagenc
@ardagenc 11 месяцев назад
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 11 месяцев назад
Yes, You can most likely use this video for iOS as well.
@DreamSomniasRQ1317
@DreamSomniasRQ1317 9 месяцев назад
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?
@LocNguyen-ir4ob
@LocNguyen-ir4ob 7 месяцев назад
I am really looking forward to a video about a score leaderboard
@Coco-3D
@Coco-3D 6 месяцев назад
Sure i'll make a video on that😇
@muhammadnouman2093
@muhammadnouman2093 Месяц назад
Can you please explain about restore subscription for both android and iOS, really appreciate that I not find exact working for restoration!
@hossamkhyati-bc2zk
@hossamkhyati-bc2zk 4 месяца назад
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
@panpam-educar-jugando
@panpam-educar-jugando 8 месяцев назад
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 8 месяцев назад
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 8 месяцев назад
@@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 8 месяцев назад
@@panpam-educar-jugando That's Great☺
@artdesireboutique
@artdesireboutique 6 месяцев назад
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?
@bonfaceosuka
@bonfaceosuka 10 месяцев назад
I had a problem with IAP because the payments were being refunded. What could be the issue ?
@jeyanthnagarajan844
@jeyanthnagarajan844 3 месяца назад
im only getting in app purchasing 4.1.5 version in package manager . not getting later versions. Can someone help
@ImAnOrdinaryCube
@ImAnOrdinaryCube 7 дней назад
I see that the coin count saves after being bought without any receipt check, is that normal? I want my game to have coins as a consumable item, and I won't implement it now, but I will later. I'm just curious how the coins save without checking the receipt.
@Sean-zc2nf
@Sean-zc2nf 2 месяца назад
quick question, will this code work for in app purchasing with ios?
@_ace55
@_ace55 11 месяцев назад
Good video, I have a question tho, why don't you use the IAP Catalog feature to create the products?
@Coco-3D
@Coco-3D 11 месяцев назад
Hi Thanks, I found it more simple, That's why ☺.
@bshark8044
@bshark8044 5 месяцев назад
I have a question, does it work if I make a game for a non-mobile computer?
@kittenvideo9717
@kittenvideo9717 Месяц назад
How to add a payment method button in the organization. Note: The payment method button does not appear no matter how much you search for it.
@kittenvideo9717
@kittenvideo9717 Месяц назад
How to solve the problem IAp key has been deprecated in favor of the monetization
@grumpysalmon4153
@grumpysalmon4153 6 месяцев назад
Hello! Where can I add the price for each individual item?
@mariusstefan792
@mariusstefan792 9 месяцев назад
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 9 месяцев назад
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
@suaygiho
@suaygiho 5 месяцев назад
給自己的筆記 5:40 開始設定專案 8:15 基本開始程式撰寫 16:50 新增付費檢查機制 20:24 google平台設置商品
@onurdemircan9214
@onurdemircan9214 8 месяцев назад
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 8 месяцев назад
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.
@lemangkuk
@lemangkuk 9 месяцев назад
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 9 месяцев назад
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.
@DrawingArtMagic
@DrawingArtMagic 5 месяцев назад
If I buy source code on market place, how to set up the IAP?
@Tonbeans
@Tonbeans 11 месяцев назад
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 11 месяцев назад
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!!
@TechWithBryan
@TechWithBryan 2 месяца назад
Can I use it to set up for ios?
@user-di9yl3sl2b
@user-di9yl3sl2b 6 месяцев назад
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 6 месяцев назад
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.
@NatureRiders8107
@NatureRiders8107 3 месяца назад
bro please tell something about iap button and iap listner in iap unity please
@user-sy1qi5bx7w
@user-sy1qi5bx7w 7 месяцев назад
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 7 месяцев назад
It goes to the Google account ☺.
@Ahmada404
@Ahmada404 10 месяцев назад
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 10 месяцев назад
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.
@albeloo
@albeloo 9 месяцев назад
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 9 месяцев назад
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?
@dakshposhiya1710
@dakshposhiya1710 6 месяцев назад
Hello Coco 3D, How to Show Item Price on Button?
@unityUser
@unityUser 7 месяцев назад
Hi, can i use firebase to store the purchased items or subscriptions?
@Coco-3D
@Coco-3D 7 месяцев назад
Yes, offcourse you can 😇
@nikakekelidze9638
@nikakekelidze9638 10 месяцев назад
Do I need to upload new bundle first? Because I cannot create in app products or subscriptions on google console
@Coco-3D
@Coco-3D 10 месяцев назад
Yes, you have to upload a bundle that should have IAP package inside it (which will add "Billing permission" to your app)
@siegfriedc2332
@siegfriedc2332 7 месяцев назад
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 7 месяцев назад
Please check out the video description i have added a method for that, i hope it helps ☺
@siegfriedc2332
@siegfriedc2332 7 месяцев назад
@@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 7 месяцев назад
@@siegfriedc2332 Can you try this code ncProductText.text = ReturnLocalizedPrice(ncItem.id);
@siegfriedc2332
@siegfriedc2332 7 месяцев назад
@@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 7 месяцев назад
@@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)
@onurdemircan9214
@onurdemircan9214 8 месяцев назад
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 8 месяцев назад
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. 👍
@arminyousefi3262
@arminyousefi3262 11 месяцев назад
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 11 месяцев назад
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 2 месяца назад
if u couldn't do this maybe you are using the .Net framework. , You should change it to 2.1 version
@flurinjenal374
@flurinjenal374 11 месяцев назад
Did anyone manage to get the subscription working?
@johndee2091
@johndee2091 5 месяцев назад
Is tutorial covert receipt validatiom so that google do not automatically refund after 72h
@brotala4794
@brotala4794 2 месяца назад
Anyone knows how to set the test card? I dit it but it requests me a normal card
@Raphael2228
@Raphael2228 2 месяца назад
You need to be in test mode, not production mode, to be able to do this.
@sohailrazi2271
@sohailrazi2271 10 месяцев назад
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 10 месяцев назад
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.
@flurinjenal374
@flurinjenal374 10 месяцев назад
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 10 месяцев назад
Can you please share the complete error statement.
@flurinjenal374
@flurinjenal374 10 месяцев назад
@@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!
@douglasfinnigan1027
@douglasfinnigan1027 Месяц назад
Um, is it ok to show your Google licensing key like that?
@tonytran07
@tonytran07 11 месяцев назад
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 10 месяцев назад
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.
@sagrgywejhxcvx
@sagrgywejhxcvx 5 месяцев назад
how get "test card, always approves"??? my game asks for real payment (nice tutorials)
@tanvirulabrar1804
@tanvirulabrar1804 6 месяцев назад
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 6 месяцев назад
Yes you can access in app purchas from play console , no trade licences is needed.
@tanvirulabrar1804
@tanvirulabrar1804 6 месяцев назад
@@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 6 месяцев назад
@@tanvirulabrar1804 Yes, I live in India.
@user-xd7jt2nm1r
@user-xd7jt2nm1r 11 месяцев назад
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 11 месяцев назад
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 10 месяцев назад
Funciona correctamente sin necesidad de colocar algún identificativo de a qué cuenta debe ir el dinero?
@beastbhaiff9649
@beastbhaiff9649 10 месяцев назад
please reply(can we connect our unity game with other api like 4poch)
@Coco-3D
@Coco-3D 10 месяцев назад
Well I am not sure, but if 4poch provide API's, so yes, you can integrate API in unity.
@zeggxr1539
@zeggxr1539 10 месяцев назад
are restores provided by Unity, or should we do it manually ?
@Coco-3D
@Coco-3D 10 месяцев назад
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.
@Pancake.Rnold35
@Pancake.Rnold35 11 месяцев назад
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 11 месяцев назад
Yes ,I think your items will not disappear.👍
Далее
Programming an entire game from scratch | Prime Reacts
15:31
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51