Corner49.PayNL 9.3.5

dotnet add package Corner49.PayNL --version 9.3.5
                    
NuGet\Install-Package Corner49.PayNL -Version 9.3.5
                    
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.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Corner49.PayNL" Version="9.3.5" />
                    
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.5
                    
#r "nuget: Corner49.PayNL, 9.3.5"
                    
#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.
#addin nuget:?package=Corner49.PayNL&version=9.3.5
                    
Install as a Cake Addin
#tool nuget:?package=Corner49.PayNL&version=9.3.5
                    
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.5 264 6/3/2025
9.3.4 139 6/3/2025
9.3.2 127 6/2/2025
9.3.1 128 6/2/2025
9.2.5361 146 5/23/2025
9.2.5354 181 5/22/2025
9.2.5284 339 5/8/2025
9.2.5273 175 5/6/2025
9.2.5237 98 5/2/2025
9.2.5236 95 5/2/2025
9.2.5224 186 4/30/2025
9.2.5201 151 4/25/2025
9.2.5198 134 4/25/2025
9.2.5192 151 4/24/2025
9.2.5191 156 4/24/2025
9.2.5178 160 4/23/2025
9.2.5177 163 4/23/2025
9.2.5175 153 4/23/2025
9.2.5151 161 4/21/2025
9.2.5116 186 4/17/2025
9.2.5115 187 4/17/2025
9.2.5113 188 4/17/2025
9.2.5112 192 4/17/2025
9.2.5111 195 4/17/2025
9.2.5109 193 4/16/2025
9.2.5108 187 4/16/2025
9.2.5106 203 4/15/2025
9.2.5105 197 4/15/2025
9.2.4988 163 4/7/2025
9.2.4952 160 4/2/2025
9.2.4951 171 4/2/2025
9.2.4950 164 4/2/2025
9.2.4949 165 4/2/2025
9.2.4948 167 4/2/2025
9.2.4942 168 4/1/2025
9.2.4932 166 3/31/2025
9.2.4929 142 3/26/2025
9.2.4927 477 3/26/2025
9.2.4892 148 3/20/2025
9.2.4891 151 3/20/2025
9.2.4865 149 3/17/2025
9.2.4786 120 3/14/2025
9.2.4782 147 3/13/2025
9.2.4781 146 3/13/2025
9.2.4777 149 3/12/2025
9.2.4776 157 3/12/2025
9.2.4612 230 3/6/2025
9.2.4611 220 3/6/2025
9.2.4610 211 3/6/2025
9.2.4609 223 3/6/2025
9.2.4608 217 3/6/2025
9.2.4606 213 3/6/2025
9.2.4603 258 3/5/2025
9.2.4602 205 3/5/2025
9.2.4586 191 3/3/2025
9.2.4583 143 3/3/2025
9.2.4475 129 2/11/2025
9.2.4474 107 2/11/2025
9.2.4448 103 2/4/2025
9.2.4447 104 2/4/2025
9.2.4437 99 2/3/2025
9.2.4330 101 1/20/2025
9.2.4329 87 1/20/2025
9.2.4315 88 1/17/2025
9.2.4314 87 1/17/2025
9.2.4313 82 1/16/2025
9.2.4289 80 1/14/2025
9.2.4257 102 1/7/2025
9.2.4256 89 1/7/2025
9.2.4255 93 1/7/2025
9.2.4254 93 1/7/2025
9.2.4252 94 1/7/2025
9.2.4251 92 1/7/2025
9.2.4250 92 1/7/2025
9.2.4232 107 1/6/2025
9.1.4212 128 1/2/2025
9.1.4211 116 1/2/2025
9.1.4210 115 1/2/2025
9.1.4209 113 1/2/2025
9.1.4180 93 12/23/2024
9.1.4176 105 12/23/2024
9.1.4163 108 12/19/2024
9.1.4142 111 12/17/2024
9.1.4141 103 12/17/2024
9.1.4132 121 12/15/2024
9.1.4103 97 12/8/2024
9.1.4101 112 12/6/2024
9.1.4100 116 12/5/2024
9.1.4099 102 12/5/2024
9.1.4092 100 12/2/2024
9.1.4088 107 12/1/2024
9.1.4080 98 12/1/2024
9.1.4077 92 11/28/2024
9.1.4076 94 11/28/2024
9.1.4062 104 11/26/2024
9.1.4056 94 11/26/2024
2.0.4043 100 11/21/2024
2.0.4041 86 11/20/2024
1.0.4042 96 11/21/2024
1.0.4040 106 11/20/2024
1.0.4028 91 11/18/2024
1.0.4027 88 11/18/2024
1.0.4026 93 11/18/2024
1.0.4025 99 11/18/2024
1.0.4024 96 11/18/2024
1.0.4018 101 11/14/2024
1.0.4017 103 11/14/2024
1.0.4016 99 11/14/2024
1.0.4015 96 11/14/2024
1.0.4014 105 11/14/2024
1.0.4012 105 11/13/2024
1.0.4007 106 11/12/2024
1.0.3994 98 10/31/2024
1.0.3992 107 10/29/2024
1.0.3983 91 10/28/2024
1.0.3982 104 10/25/2024
1.0.3981 96 10/25/2024
1.0.3980 114 10/25/2024
1.0.3979 100 10/25/2024
1.0.3976 103 10/24/2024
1.0.3971 97 10/23/2024
1.0.3968 97 10/23/2024
1.0.3967 99 10/23/2024
1.0.3966 107 10/23/2024
1.0.3965 105 10/23/2024
1.0.3962 100 10/22/2024
1.0.3960 96 10/17/2024
1.0.3959 448 10/17/2024
1.0.3958 114 10/16/2024
1.0.3953 109 10/11/2024