Vipps.net 0.8.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Vipps.net --version 0.8.3                
NuGet\Install-Package Vipps.net -Version 0.8.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vipps.net" Version="0.8.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vipps.net --version 0.8.3                
#r "nuget: Vipps.net, 0.8.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vipps.net as a Cake Addin
#addin nuget:?package=Vipps.net&version=0.8.3

// Install Vipps.net as a Cake Tool
#tool nuget:?package=Vipps.net&version=0.8.3                

Vipps.net

The official Vipps .NET SDK for the Checkout and Epayment APIs.

Supports .NET Standard 2.0+, .NET Core 2.0+ and .NET Framework 4.8+

Features

  • Serialization/deserialization
  • Authentication
  • Network retries
  • Idempotency

Installation

.NET Core CLI:

dotnet add package vipps.net

Usage

var vippsConfigurationOptions = new VippsConfigurationOptions
{
    ClientId = "CLIENT-ID",
    ClientSecret = "CLIENT-SECRET",
    MerchantSerialNumber = "MERCHANT-SERIAL-NUMBER",
    SubscriptionKey = "SUBSCRIPTION-KEY",
    UseTestMode = true
};

VippsConfiguration.ConfigureVipps(vippsConfigurationOptions);

var request = new InitiateSessionRequest
{
    MerchantInfo = new PaymentMerchantInfo
    {
        CallbackAuthorizationToken = Guid.NewGuid().ToString(),
        CallbackUrl = "https://your-url-here.com:3000",
        ReturnUrl = "https://your-url-here.com:3000",
    },
    Transaction = new PaymentTransaction
    {
        Amount = new Amount { Currency = "NOK", Value = 10000 },
        PaymentDescription = "test",
        Reference = Guid.NewGuid().ToString()
    }
};

var result = await CheckoutService.InitiateSession(request);

Unimplemented parameters and properties

The Vipps SDK offer typed request and response classes. These classes might not be up to date if you are on the bleeding edge of our APIs, or if you use features that are not generally available.

Request

All request objects have a property called "ExtraParameters". This is a dynamic object that if set will merge with the request object.

ExtraParameters example
InitiateSessionRequest initiateSessionRequest = new()
{
    Transaction = new PaymentTransaction()
    {
        Amount = new Amount()
        {
            Currency = "NOK",
            Value = 49000
        },
        PaymentDescription = "Hei"
    },
    AdditionalProperties =
    {
        { "Transaction", new { Metadata = new { KID = "100001" } } }
    }
};
Response

All response objects have a property called RawResponse that contains the response in the form of a JsonObject.

RawResponse example
var response = checkoutService.InitiateSession(initiateSessionRequest);
var cancellationUrl = response.RawResponse["cancellationUrl"].ToString();
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.1 170 10/14/2024
2.0.0 96 10/11/2024
1.0.4 103 10/11/2024
1.0.1 86 10/9/2024
0.9.6 7,450 12/21/2023
0.9.5 139 12/15/2023
0.9.4 155 12/14/2023
0.9.2 3,777 8/25/2023
0.9.1 141 8/16/2023
0.8.4 775 3/23/2023
0.8.3 339 3/23/2023
0.8.2 217 3/23/2023