-
Notifications
You must be signed in to change notification settings - Fork 2
Initializing the SDK
Zeno Foltin edited this page May 11, 2019
·
9 revisions
In your Xamarin Forms page, create a new Judo instance:
var judo = new Judo
{
JudoId = "<JUDO_ID>",
Token = "<API_TOKEN>",
Secret = "<API_SECRET>",
Environment = JudoEnvironment.Sandbox,
Amount = 1.50m,
Currency = "GBP",
ConsumerReference = "YourUniqueReference"
};
Note: Please make sure that you are using a unique Consumer Reference for each different consumer.
Xamarin.Forms for iOS has issues resolving dependencies using DependencyService unless they have been registered.
Add this in your AppDelegate.cs
after the LoadApplication(new App());
method call in your FinishedLaunching
method:
DependencyService.Register<ClientService>();
DependencyService.Register<HttpClientHelper>();
// Required if using Apple Pay
DependencyService.Register<ApplePayService>();