SwedbankPay.Sdk
4.0.0
See the version list below for details.
dotnet add package SwedbankPay.Sdk --version 4.0.0
NuGet\Install-Package SwedbankPay.Sdk -Version 4.0.0
<PackageReference Include="SwedbankPay.Sdk" Version="4.0.0" />
paket add SwedbankPay.Sdk --version 4.0.0
#r "nuget: SwedbankPay.Sdk, 4.0.0"
// Install SwedbankPay.Sdk as a Cake Addin #addin nuget:?package=SwedbankPay.Sdk&version=4.0.0 // Install SwedbankPay.Sdk as a Cake Tool #tool nuget:?package=SwedbankPay.Sdk&version=4.0.0
Swedbank Pay SDK for .NET
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.
Build status
Platform | Status |
---|---|
Windows | |
macOS | |
Ubuntu |
Supported APIs
- Payment Order v3
- create payment order
- get payment order
- capture
- cancel
- reversal
- abort
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 | Versions 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. |
-
.NETStandard 2.0
- System.Text.Json (>= 5.0.0 && < 9.0.0)
-
net6.0
- System.Text.Json (>= 6.0.0 && < 9.0.0)
-
net7.0
- System.Text.Json (>= 7.0.0 && < 9.0.0)
-
net8.0
- System.Text.Json (>= 8.0.0 && < 9.0.0)
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 | 411 | 11/25/2024 |
4.1.1 | 3,508 | 7/22/2024 |
4.1.0 | 538 | 5/22/2024 |
4.0.1 | 663 | 4/2/2024 |
4.0.0 | 318 | 3/7/2024 |
3.3.0 | 5,632 | 2/27/2023 |
3.2.0 | 1,667 | 10/10/2022 |
3.1.2 | 3,684 | 6/7/2022 |
3.1.1 | 2,882 | 3/21/2022 |
3.0.1 | 2,683 | 1/21/2022 |
3.0.0 | 2,667 | 8/27/2021 |
2.0.1 | 3,666 | 3/25/2021 |
2.0.0 | 498 | 3/19/2021 |
2.0.0-beta.12 | 304 | 3/16/2021 |
2.0.0-beta.10 | 817 | 2/12/2021 |
2.0.0-beta.9 | 193 | 2/10/2021 |
2.0.0-beta.7 | 178 | 2/9/2021 |
2.0.0-beta.6 | 201 | 2/6/2021 |
2.0.0-beta.5 | 174 | 2/5/2021 |
1.3.0-dependabot-nuget-NUni... | 475 | 7/13/2020 |
1.3.0-alpha.trustly-payment... | 254 | 7/7/2020 |
1.3.0-alpha.DX-952-move-bui... | 304 | 6/25/2020 |
1.3.0-alpha.DX-952-move-bui... | 261 | 6/25/2020 |
1.3.0-alpha.DX-952-move-bui... | 232 | 6/25/2020 |
1.3.0-alpha.267 | 268 | 6/25/2020 |
1.2.0-beta0000 | 7,287 | 4/17/2020 |
1.1.1-beta0000 | 495 | 3/2/2020 |
1.1.0-beta0000 | 3,207 | 2/21/2020 |
1.0.0-beta0845 | 370 | 2/21/2020 |
1.0.0-beta0512 | 540 | 1/28/2020 |
1.0.0-beta0008 | 548 | 1/22/2020 |
1.0.0-beta0005 | 358 | 1/21/2020 |
1.0.0-beta0000 | 405 | 1/16/2020 |
SDK for Swedbank Pay Checkout v3.1.