GithubHelp home page GithubHelp logo

liteolika / swedbank-pay-sdk-dotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swedbankpay/swedbank-pay-sdk-dotnet

0.0 0.0 0.0 4.04 MB

Swedbank Pay SDK for .NET (Beta)

Home Page: https://www.nuget.org/packages/SwedbankPay.Sdk

License: Apache License 2.0

Dockerfile 0.18% C# 95.39% Shell 0.49% HTML 3.73% CSS 0.18% JavaScript 0.02%

swedbank-pay-sdk-dotnet's Introduction

Swedbank Pay SDK for .NET

Swedbank Pay SDK for .NET

Latest stable NuGet package Latest prerelease NuGet package NuGet downloads CLA assistant License Dependabot Status 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.

Build status

Platform Status
Windows Windows develop build status
macOS macOS develop build status
Ubuntu Ubuntu develop build status

Supported APIs

  • Payment Order
    • create payment order
    • get payment order
    • capture
    • cancel
    • reversal
    • abort
  • Swish Payments
    • create swish payment
    • get swish payment
    • abort
    • reversal
  • Card Payments
    • create card payment
    • get card payment
    • capture
    • cancel
    • reversal

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.

swedbank-pay-sdk-dotnet's People

Contributors

zunkas avatar nullableint avatar karlfristedt76 avatar clement-joye avatar trieutran91 avatar asbjornu avatar dependabot-preview[bot] avatar johnkors avatar dependabot[bot] avatar mergify[bot] avatar joakimmag avatar maool avatar nacorpio avatar toreerstad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.