SwedbankPay.Sdk
4.1.0
See the version list below for details.
dotnet add package SwedbankPay.Sdk --version 4.1.0
NuGet\Install-Package SwedbankPay.Sdk -Version 4.1.0
<PackageReference Include="SwedbankPay.Sdk" Version="4.1.0" />
paket add SwedbankPay.Sdk --version 4.1.0
#r "nuget: SwedbankPay.Sdk, 4.1.0"
// Install SwedbankPay.Sdk as a Cake Addin #addin nuget:?package=SwedbankPay.Sdk&version=4.1.0 // Install SwedbankPay.Sdk as a Cake Tool #tool nuget:?package=SwedbankPay.Sdk&version=4.1.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.
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 | 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.1 | 2,636 | 7/22/2024 |
4.1.0 | 484 | 5/22/2024 |
4.0.1 | 655 | 4/2/2024 |
4.0.0 | 310 | 3/7/2024 |
3.3.0 | 5,546 | 2/27/2023 |
3.2.0 | 1,661 | 10/10/2022 |
3.1.2 | 3,496 | 6/7/2022 |
3.1.1 | 2,878 | 3/21/2022 |
3.0.1 | 2,679 | 1/21/2022 |
3.0.0 | 2,663 | 8/27/2021 |
2.0.1 | 3,653 | 3/25/2021 |
2.0.0 | 494 | 3/19/2021 |
2.0.0-beta.12 | 302 | 3/16/2021 |
2.0.0-beta.10 | 815 | 2/12/2021 |
2.0.0-beta.9 | 191 | 2/10/2021 |
2.0.0-beta.7 | 176 | 2/9/2021 |
2.0.0-beta.6 | 199 | 2/6/2021 |
2.0.0-beta.5 | 172 | 2/5/2021 |
1.3.0-dependabot-nuget-NUni... | 473 | 7/13/2020 |
1.3.0-alpha.trustly-payment... | 252 | 7/7/2020 |
1.3.0-alpha.DX-952-move-bui... | 302 | 6/25/2020 |
1.3.0-alpha.DX-952-move-bui... | 259 | 6/25/2020 |
1.3.0-alpha.DX-952-move-bui... | 230 | 6/25/2020 |
1.3.0-alpha.267 | 266 | 6/25/2020 |
1.2.0-beta0000 | 7,227 | 4/17/2020 |
1.1.1-beta0000 | 493 | 3/2/2020 |
1.1.0-beta0000 | 3,205 | 2/21/2020 |
1.0.0-beta0845 | 368 | 2/21/2020 |
1.0.0-beta0512 | 538 | 1/28/2020 |
1.0.0-beta0008 | 546 | 1/22/2020 |
1.0.0-beta0005 | 354 | 1/21/2020 |
1.0.0-beta0000 | 403 | 1/16/2020 |
SDK for Swedbank Pay Checkout v3.1.