aboutsummaryrefslogtreecommitdiffstats
path: root/src/IOL.VippsEcommerce.Client
diff options
context:
space:
mode:
Diffstat (limited to 'src/IOL.VippsEcommerce.Client')
-rw-r--r--src/IOL.VippsEcommerce.Client/Program.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/IOL.VippsEcommerce.Client/Program.cs b/src/IOL.VippsEcommerce.Client/Program.cs
index b165f63..2f83dc1 100644
--- a/src/IOL.VippsEcommerce.Client/Program.cs
+++ b/src/IOL.VippsEcommerce.Client/Program.cs
@@ -1,6 +1,7 @@
using System;
using System.Text.Json;
using IOL.VippsEcommerce;
+using IOL.VippsEcommerce.Models;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
@@ -11,6 +12,7 @@ services.AddVippsEcommerceService(o => {
o.ClientId = "";
o.CacheEncryptionKey = "";
o.CacheDirectoryPath = "";
+ o.ConfigurationMode = VippsConfigurationMode.ONLY_OBJECT;
});
var provider = services.BuildServiceProvider();
var vippsEcommerceService = provider.GetService<IVippsEcommerceService>();