Google Wallet

I’ve been trying to find a way to allow in-app purchases but nothing I find seems to work
I’ve tried adding the nuget package Xamarin.GooglePlayServices.Wallet
but I get this error when trying to add it

Could not install package ‘Xamarin.GooglePlayServices.Wallet 71.1600.1’. You are trying to install this package into a project that targets ‘MonoAndroid,Version=v4.4’, but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I’m using the default android project with Monogame 3.71 on visual studio 2017

What version of Android is your project targeting and what is the minimum? I haven’t added in-app purchases yet, but when I added Admob I had to make sure I was targeting a minimum of API level 21

Given the 4.4, I think it was API level 19. Can’t get to this at this exact moment but will try modifying it when I can

Yup, API level was the problem in the package dependencies
That one needs Android 9.0 (28)

I did find the GooglePlayServices.Wallet which only needs 8.1 (27) which was the default install, so I might try experimenting with that one first

Thanks for the help, kind of new to looking through packages like that

1 Like

any resources you’d recommend on hooking up in-app purchases? I’ll be tackling this in the next few days myself

It’s my first time on that too
I’m pretty sure Google has a tutorial on it.

1 Like