SwedbankPay.Sdk 4.1.2

dotnet add package SwedbankPay.Sdk --version 4.1.2                
NuGet\Install-Package SwedbankPay.Sdk -Version 4.1.2                
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.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SwedbankPay.Sdk --version 4.1.2                
#r "nuget: SwedbankPay.Sdk, 4.1.2"                
#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.1.2

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

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)
  • Customise payment selection & favorite method

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.1.2 435 11/25/2024
4.1.1 3,541 7/22/2024
4.1.0 539 5/22/2024
4.0.1 664 4/2/2024
4.0.0 319 3/7/2024
3.3.0 5,635 2/27/2023
3.2.0 1,668 10/10/2022
3.1.2 3,687 6/7/2022
3.1.1 2,885 3/21/2022
3.0.1 2,686 1/21/2022
3.0.0 2,670 8/27/2021
2.0.1 3,669 3/25/2021
2.0.0 501 3/19/2021
2.0.0-beta.12 305 3/16/2021
2.0.0-beta.10 818 2/12/2021
2.0.0-beta.9 194 2/10/2021
2.0.0-beta.7 179 2/9/2021
2.0.0-beta.6 202 2/6/2021
2.0.0-beta.5 175 2/5/2021
1.3.0-dependabot-nuget-NUni... 476 7/13/2020
1.3.0-alpha.trustly-payment... 255 7/7/2020
1.3.0-alpha.DX-952-move-bui... 305 6/25/2020
1.3.0-alpha.DX-952-move-bui... 262 6/25/2020
1.3.0-alpha.DX-952-move-bui... 233 6/25/2020
1.3.0-alpha.267 269 6/25/2020
1.2.0-beta0000 7,288 4/17/2020
1.1.1-beta0000 496 3/2/2020
1.1.0-beta0000 3,208 2/21/2020
1.0.0-beta0845 371 2/21/2020
1.0.0-beta0512 541 1/28/2020
1.0.0-beta0008 549 1/22/2020
1.0.0-beta0005 359 1/21/2020
1.0.0-beta0000 406 1/16/2020

SDK for Swedbank Pay Checkout v3.1.