aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-11-12 03:59:29 +0100
committerivarlovlie <git@ivarlovlie.no>2022-11-12 03:59:29 +0100
commit079974eda047ac9a6dc968c57a9b89acf6d2a08c (patch)
treeec76f9b09ec0e1e80afaaee8e0def7c70b61d872 /README.md
parent5097177a443449c95b860b6c6f8f6bcf0006b8c9 (diff)
downloaddotnet-vipps-ecommerce-079974eda047ac9a6dc968c57a9b89acf6d2a08c.tar.xz
dotnet-vipps-ecommerce-079974eda047ac9a6dc968c57a9b89acf6d2a08c.zip
feat: Update
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/README.md b/README.md
index 85ed413..06c87ce 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,10 @@
-Implements https://vippsas.github.io/vipps-ecom-api, more or less (see [IVippsEcommerceService.cs](https://git.ivarlovlie.no/dotnet-vipps-ecommerce/tree/src/IOL.VippsEcommerce/IVippsEcommerceService.cs)).
+Implements https://vippsas.github.io/vipps-ecom-api, more or less (see [IVippsEcommerceService.cs](https://git.ivar.systems/dotnet-vipps-ecommerce/tree/src/IOL.VippsEcommerce/IVippsEcommerceService.cs)).
Install: `dotnet add package IOL.VippsEcommerce`
-
Nuget: [https://www.nuget.org/packages/IOL.VippsEcommerce](https://www.nuget.org/packages/IOL.VippsEcommerce)
-## Configuration
+## Setup
Use Dependency Injection to add and configure the service with your values, minimal setup example:
```csharp
@@ -19,7 +18,7 @@ services.AddVippsEcommerceService(o => {
See [VippsConfiguration.cs](https://git.ivarlovlie.no/dotnet-vipps-ecommerce/tree/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs) for available properties.
-## Caching
+### Caching
The service can cache the credentials for api access in a file with optional AES encryption, example:
```csharp
@@ -27,4 +26,4 @@ services.AddVippsEcommerceService(o => {
o.CacheEncryptionKey = "randomstring"; // optional key for AES encryption, if omitted the cache will be readable json with your keys exposed and everything.
o.CacheDirectoryPath = "/tmp/vippsecom"; // path to a directory that the executing process has write-access to.
});
-```
+``` \ No newline at end of file