SwedbankPay.Sdk 4.0.1

dotnet add package SwedbankPay.Sdk --version 4.0.1
NuGet\Install-Package SwedbankPay.Sdk -Version 4.0.1
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="SwedbankPay.Sdk" Version="4.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SwedbankPay.Sdk --version 4.0.1
#r "nuget: SwedbankPay.Sdk, 4.0.1"
#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 SwedbankPay.Sdk as a Cake Addin
#addin nuget:?package=SwedbankPay.Sdk&version=4.0.1

// Install SwedbankPay.Sdk as a Cake Tool
#tool nuget:?package=SwedbankPay.Sdk&version=4.0.1

Swedbank Pay SDK for .NET

Swedbank Pay SDK for .NET

Latest stable NuGet package Latest prerelease NuGet package NuGet downloads CLA assistant License Contributor Covenant

SwedbankPay.Sdk is a library that allows you to interact with Swedbank Pay's API Platform in a statically typed client targeting .NET Standard 2.0. For information about which runtimes (.NET Framework, .NET Core, Mono, Xamarin, etc.) support .NET Standard 2.0, see Microsoft's documentation.

About

UNSUPPORTED: This SDK is at an early stage of development and is not supported as of yet by Swedbank Pay. It is provided as a convenience to speed up your development, so please feel free to play around. However, if you need support, please wait for a future, stable release.

Supported APIs Version 3.1

  • Payment Order
    • Create PaymentOrder
    • GET PaymentOrder
    • UpdateOrder
    • Capture
    • Cancel
    • Reversal
    • Abort
  • Tokens
    • Network Tokenization
    • Get stored details
    • Delete stored details

Use Cases

  • Subscriptions
  • Verify
    • Collect and store payment details for future usage.
    • Collect and replace current payment details (Subscriptions)
  • Instrument Mode (Build your own menu)

Sample App

Check the the samples folder. To run the sample site. Make sure to add your PayeeId and ApiBaseUrl from SwedbankPay in appsettings.json

You will also need to add the token from SwedbankPay in secrets.json by running the following command in the project root folder. dotnet user-secrets set "Token" "{Your token}" --project src/Samples/Sample.AspNetCore

Getting started

Install the SwedbankPay.Sdk NuGet in your project:

dotnet add package SwedbankPay.Sdk

To configure the SDK in one line using Microsoft.Extensions.DependencyInjection, you need to install SwedbankPay.Sdk.Extensions. The SDK can then be configured as such: (This requires that you have added SwedbankPay.Sdk.Extensions)

public void ConfigureServices(IServiceCollection services)
{
    services.AddSwedbankPayClient(ApiUrl, AuthenticationToken);
    ...
}

This will add the ISwedbankPayClient to the system, as well as interfaces for all api's in case you want to have more control over what is injected. See the samples for inspiration and usage. Using this to configure the SwedbankPay.Sdk will set up a LoggingDelegatingHandler that aids in logging error responses from the api.

Contributing

Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct and sign the contributor's license agreement.

License

The code within this repository is available as open source under the terms of the Apache 2.0 License and the contributor's license agreement.

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 is compatible.  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 was computed. 
.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 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on SwedbankPay.Sdk:

Package Downloads
SwedbankPay.Sdk.Extensions

Extension methods for Swedbank Pay SDK

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.1 138 4/2/2024
4.0.0 249 3/7/2024
3.3.0 3,971 2/27/2023
3.2.0 1,623 10/10/2022
3.1.2 2,621 6/7/2022
3.1.1 2,828 3/21/2022
3.0.1 2,633 1/21/2022
3.0.0 2,589 8/27/2021
2.0.1 3,456 3/25/2021
2.0.0 455 3/19/2021
2.0.0-beta.12 285 3/16/2021
2.0.0-beta.10 799 2/12/2021
2.0.0-beta.9 173 2/10/2021
2.0.0-beta.7 166 2/9/2021
2.0.0-beta.6 182 2/6/2021
2.0.0-beta.5 156 2/5/2021
1.3.0-dependabot-nuget-NUni... 457 7/13/2020
1.3.0-alpha.trustly-payment... 238 7/7/2020
1.3.0-alpha.DX-952-move-bui... 286 6/25/2020
1.3.0-alpha.DX-952-move-bui... 244 6/25/2020
1.3.0-alpha.DX-952-move-bui... 217 6/25/2020
1.3.0-alpha.267 255 6/25/2020
1.2.0-beta0000 6,822 4/17/2020
1.1.1-beta0000 468 3/2/2020
1.1.0-beta0000 2,766 2/21/2020
1.0.0-beta0845 359 2/21/2020
1.0.0-beta0512 520 1/28/2020
1.0.0-beta0008 521 1/22/2020
1.0.0-beta0005 338 1/21/2020
1.0.0-beta0000 380 1/16/2020

SDK for Swedbank Pay Checkout v3.1.