Pensopay 0.7.0
See the version list below for details.
dotnet add package Pensopay --version 0.7.0
NuGet\Install-Package Pensopay -Version 0.7.0
<PackageReference Include="Pensopay" Version="0.7.0" />
paket add Pensopay --version 0.7.0
#r "nuget: Pensopay, 0.7.0"
// Install Pensopay as a Cake Addin #addin nuget:?package=Pensopay&version=0.7.0 // Install Pensopay as a Cake Tool #tool nuget:?package=Pensopay&version=0.7.0
Pensopay Payments
Pensopay Payments is the unoffical .net nuget package for the Pensopay API. It is a wrapper for the Pensopay API, and makes it easy to integrate Pensopay into your .net project.
Installation
You can either download our source directly from the GitHub repo, or install the nuget package which can be found on nuget .org.
Usage
Before you can use this package, you need to have a Pensopay account. You can create one here. You also need a payment agreement, which you can create right here
Services
The communication with Pensopay is done through the servies classes. They each represent a part of the Pensopay API. Currently there is support for the following services:
- PaymentService
- AccountService
- SettlementService
- SubscriptionServce (Not yet implemented, but is planned)
Each service has a set of methods, which corresponds to the endpoints in the Pensopay API. The methods are async, and returns a response object, which contains the response from the Pensopay API. Each service must be initialised with a valid baerer token, which can be obtained from the Pensopay dashboard.
Models
The requests and responses that are supported by the services also comes with model classes, so parsing of the http response is done for you.
Extension
Extension If you need access to other endpoints than what is available in the current version, please feel free to suggest them under issues.
You can also take matters into your own hand and implement the missing parts yourself. To do this you can create your own service class and let it extend the PensoPayRestClient, which will ensure that the correct header values are added to the requests.
Examples
For examples on how to use the package, please see the examples folder in the repo.
Isues
if you find any issues, please report them in the issues section of the repo. It will then get sorted as soon as possible.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Disclaimer
This package is not affiliated with Pensopay in any way. It is an unoffical package, and is not supported by Pensopay.
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net8.0
- RestSharp (>= 110.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.