Corner49.PayNL 9.3.9

dotnet add package Corner49.PayNL --version 9.3.9
                    
NuGet\Install-Package Corner49.PayNL -Version 9.3.9
                    
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="Corner49.PayNL" Version="9.3.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Corner49.PayNL" Version="9.3.9" />
                    
Directory.Packages.props
<PackageReference Include="Corner49.PayNL" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Corner49.PayNL --version 9.3.9
                    
#r "nuget: Corner49.PayNL, 9.3.9"
                    
#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.
#:package Corner49.PayNL@9.3.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Corner49.PayNL&version=9.3.9
                    
Install as a Cake Addin
#tool nuget:?package=Corner49.PayNL&version=9.3.9
                    
Install as a Cake Tool

Corner49.PayNL

C# SDK for Pay.NL payment system

This SDK is started as a clone of the offical Pay.NL sdk-net This SDK provides support for both the PAY 2.0, and the PAY 3.0, with each their own client class, PayV2Client and PayV3Client.

  • Added some bugfixes
  • Added some improvements
  • Added extra features


Installation

Simply download and restore nuget packages https://www.nuget.org/packages/PayNL.Sdk or install it from package manager

PM> Install-Package Corner49.PayNL -Version x.x.x

Usage

Creating a client, you can find your API key and tokens in the Pay.nl Admin Panel, and the service id (SL-xxxx-xxx) secret in the Pay.nl Services Overview under 'Sales locations':

var client = new PayV2Client("apiSecret", "AT-xxxx-xxxx", "ST-xxxx-xxxx");

Getting a list of available payment methods:

var methods = await client.GetAvailablePaymentMethods();

Starting a transaction:

var transactionRequest = new CreateTransactionRequest()
{
    Amount = new Amount()
        {
            Value = 1000,
        },
    ReturnUrl = "https://demo.pay.nl/complete/",
    Description = "Example transaction",
    Reference = "12345XXY0123"
};

// Contains ID
var transactionResponse = await client.CreateTransaction(transactionRequest);

To determine if a transaction has been paid, you can use:

var trxStatus = await client.GetTransactionInfo(transactionResponse.Id);
var paid = trxStatus.AmountPaid.Value == trxStatus.Amount.Value;

Flexible debit order

To start a flexible debit order first create a mandate:

var mandate = await client.CreateMandate(new CreateMandateRequest
    {
        ServiceId = "SL-1234-1234",
        Amount= 1,
        Bankaccountholder = "John Doe",
        ProcessDate = "dd-MM-yyyy",
        Description = "Create Mandate",
        BankaccountNumber = "NL42INGB0000000000"
    });
var mandateId = mandate.MandateId;

The mandate first needs to be processed, use the below service too check the status of the mandate (MandateStatusCode should be Processed):

var mandate = await client.GetMandate("IO-1234-1234-1234");

Once processed you can start a flexible debit order using the below service:

var debitOrder = await client.CreateFlexibleDirectDebit(new FlexibleDirectDebitRequest
{
    MandateId = "IO-1234-1234-1234",
    Amount = 1,
    ProcessDate = "dd-MM-yyyy",
    Description = "Create debit order",
    Last = false,
});

var debitOrderId = debitOrder.DebitOrderId;

Unit Tests

In order run the unit tests the following environment variables needs too be set up: | Variable | Value | |-----------------------------|-------------------------------------------------------------| | PAY_APIKEY | Your pay API Token from the pay dashboard | | PAY_AT | AT code of the API Token (AT-1234-1234) | | PAY_SERVICEID | Service location code | | PAY_MERCHANTID | Merchant code (M-1223-1234) | | PAY_MANDATEID | Mandate code used for direct debit orders | | PAY_BANKACCOUNTNUMBER | Iban number used for clearing and diriect debit order tests | | PAY_BANKACCOUNTHOLDER | Account holder of the above Iban |

Supported platforms

This library is built using .NET standard 2.0. This means that the package supports the following .NET implementations: | Framework | Version Support | |-----------------------------|-----------------| | .NET and .NET Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 | | .NET Framework | 4.6.1 2, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 | | Mono | 5.4, 6.4 | | Xamarin.iOS | 10.14, 12.16 | | Xamarin.Mac | 3.8, 5.16 | | Xamarin.Android | 8.0, 10.0 | | Universal Windows Platform | 10.0.16299, TBD | | Unity | 2018.1 |

Source: https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0

Implemented features API V2

  • Transactions
    • Create
    • View
    • Cancel
    • Refund
    • Approve
    • Decline
    • Capture
    • Void
    • Load
    • Load UUID
  • Refund
    • Add
    • Info
  • Get available currencies
  • DirectDebits CRUD
  • Ip addresses
    • Get all
    • Verify single
  • Merchants
    • Create
    • Get
    • Delete
    • List
    • Update
    • Request review
    • Clearings
    • Invoices
    • Update package
    • Undelete
  • Packages
  • Get available payment methods
  • Get services
  • Pin transactions
    • Get status
    • Cancel
    • Get terminals
  • Trademarks
    • Get
    • List
    • Create
    • (Un)suspend
  • Create vouchers
  • Remainder of the documented API

Implemented features API V3

  • Orders
    • Create
    • View
    • Capture order
    • Capture amount
    • Capture products
    • Void
    • Abort
    • Approve
    • Decline
  • Remainder of the documented API

License

The Assembly is available as open source under the terms of the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 Corner49.PayNL:

Package Downloads
Corner49.PayNL.Cli

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.3.9 801 9/16/2025
9.3.8 698 9/5/2025
9.3.7 142 9/5/2025
9.3.6 175 9/5/2025
9.3.5 791 6/3/2025
9.3.4 184 6/3/2025
9.3.2 165 6/2/2025
9.3.1 165 6/2/2025
9.2.5361 220 5/23/2025
9.2.5354 225 5/22/2025
9.2.5284 416 5/8/2025
9.2.5273 229 5/6/2025
9.2.5237 153 5/2/2025
9.2.5236 143 5/2/2025
9.2.5224 241 4/30/2025
9.2.5201 205 4/25/2025
9.2.5198 185 4/25/2025
9.2.5192 200 4/24/2025
9.2.5191 199 4/24/2025
9.2.5178 228 4/23/2025
9.2.5177 201 4/23/2025
9.2.5175 206 4/23/2025
9.2.5151 213 4/21/2025
9.2.5116 233 4/17/2025
9.2.5115 258 4/17/2025
9.2.5113 241 4/17/2025
9.2.5112 242 4/17/2025
9.2.5111 247 4/17/2025
9.2.5109 243 4/16/2025
9.2.5108 236 4/16/2025
9.2.5106 277 4/15/2025
9.2.5105 249 4/15/2025
9.2.4988 211 4/7/2025
9.2.4952 218 4/2/2025
9.2.4951 240 4/2/2025
9.2.4950 208 4/2/2025
9.2.4949 215 4/2/2025
9.2.4948 214 4/2/2025
9.2.4942 233 4/1/2025
9.2.4932 212 3/31/2025
9.2.4929 179 3/26/2025
9.2.4927 528 3/26/2025
9.2.4892 199 3/20/2025
9.2.4891 217 3/20/2025
9.2.4865 200 3/17/2025
9.2.4786 172 3/14/2025
9.2.4782 197 3/13/2025
9.2.4781 180 3/13/2025
9.2.4777 186 3/12/2025
9.2.4776 202 3/12/2025
9.2.4612 280 3/6/2025
9.2.4611 287 3/6/2025
9.2.4610 280 3/6/2025
9.2.4609 270 3/6/2025
9.2.4608 260 3/6/2025
9.2.4606 260 3/6/2025
9.2.4603 321 3/5/2025
9.2.4602 249 3/5/2025
9.2.4586 231 3/3/2025
9.2.4583 187 3/3/2025
9.2.4475 186 2/11/2025
9.2.4474 146 2/11/2025
9.2.4448 143 2/4/2025
9.2.4447 157 2/4/2025
9.2.4437 137 2/3/2025
9.2.4330 144 1/20/2025
9.2.4329 154 1/20/2025
9.2.4315 128 1/17/2025
9.2.4314 126 1/17/2025
9.2.4313 124 1/16/2025
9.2.4289 120 1/14/2025
9.2.4257 130 1/7/2025
9.2.4256 121 1/7/2025
9.2.4255 122 1/7/2025
9.2.4254 132 1/7/2025
9.2.4252 127 1/7/2025
9.2.4251 156 1/7/2025
9.2.4250 134 1/7/2025
9.2.4232 139 1/6/2025
9.1.4212 165 1/2/2025
9.1.4211 145 1/2/2025
9.1.4210 153 1/2/2025
9.1.4209 143 1/2/2025
9.1.4180 135 12/23/2024
9.1.4176 135 12/23/2024
9.1.4163 151 12/19/2024
9.1.4142 176 12/17/2024
9.1.4141 161 12/17/2024
9.1.4132 185 12/15/2024
9.1.4103 138 12/8/2024
9.1.4101 155 12/6/2024
9.1.4100 161 12/5/2024
9.1.4099 144 12/5/2024
9.1.4092 130 12/2/2024
9.1.4088 148 12/1/2024
9.1.4080 140 12/1/2024
9.1.4077 133 11/28/2024
9.1.4076 134 11/28/2024
9.1.4062 142 11/26/2024
9.1.4056 134 11/26/2024
2.0.4043 142 11/21/2024
2.0.4041 127 11/20/2024
1.0.4042 137 11/21/2024
1.0.4040 146 11/20/2024
1.0.4028 147 11/18/2024
1.0.4027 130 11/18/2024
1.0.4026 162 11/18/2024
1.0.4025 138 11/18/2024
1.0.4024 135 11/18/2024
1.0.4018 143 11/14/2024
1.0.4017 148 11/14/2024
1.0.4016 140 11/14/2024
1.0.4015 138 11/14/2024
1.0.4014 134 11/14/2024
1.0.4012 172 11/13/2024
1.0.4007 175 11/12/2024
1.0.3994 141 10/31/2024
1.0.3992 148 10/29/2024
1.0.3983 129 10/28/2024
1.0.3982 146 10/25/2024
1.0.3981 134 10/25/2024
1.0.3980 155 10/25/2024
1.0.3979 164 10/25/2024
1.0.3976 143 10/24/2024
1.0.3971 137 10/23/2024
1.0.3968 140 10/23/2024
1.0.3967 141 10/23/2024
1.0.3966 149 10/23/2024
1.0.3965 171 10/23/2024
1.0.3962 138 10/22/2024
1.0.3960 147 10/17/2024
1.0.3959 493 10/17/2024
1.0.3958 152 10/16/2024
1.0.3953 169 10/11/2024