I am using Unity 2017.2.1f1 running Experimental .NET 4.6 equivalent scripting runtime version with .NET 4.6 compatibility level.
However when i install te latest version of Stripe.net (which requires .NET 4.0) using nuget packet manager i get the error Error CS0246 The type or namespace name 'Stripe' could not be found (are you missing a using directive or an assembly reference?)
when trying to use the stripe namespace.
I am fairly sure this is being caused by Monodevelop somehow interfering as i am able to use the Stripe
namespace when I create a clean .net project and get the very same package with nuget.
Is there a different way to install the Stripe.net library that would allow me to use the namespace?
using Stripe; // not found (in a Unity project)
public class StripeAuthenticate
{
void InitStripe()
{
StripeConfiguration.SetApiKey("stripe_key");
}
}
I tried removing the Monobehaviour inheritence but that did not do anything either.
I have tried following the steps here but since i was already using nuget from the start that didn't do anything for me.
edit: I am aware of UniStripe but this hasn't been updated in years, coupled with the negative reviews I do not feel comfortable using this