Regira.Payments 6.4.0

dotnet add package Regira.Payments --version 6.4.0
                    
NuGet\Install-Package Regira.Payments -Version 6.4.0
                    
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="Regira.Payments" Version="6.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Regira.Payments" Version="6.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Regira.Payments" />
                    
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 Regira.Payments --version 6.4.0
                    
#r "nuget: Regira.Payments, 6.4.0"
                    
#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 Regira.Payments@6.4.0
                    
#: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=Regira.Payments&version=6.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Regira.Payments&version=6.4.0
                    
Install as a Cake Tool

Regira Payments

Regira Payments provides payment processing via Mollie and POM, built on the shared payment contracts from Regira.Invoicing.

Projects

Project Package Backend
Common.Payments Regira.Payments Packaging only (build targets, AI docs — no code)
Payments.Mollie Regira.Payments.Mollie Mollie API
Payments.Pom Regira.Payments.Pom POM payment gateway

Installation

<PackageReference Include="Regira.Payments.Mollie" Version="6.*" />
<PackageReference Include="Regira.Payments.Pom"    Version="6.*" />

Mollie

MollieConfig

Property Type Description
Api string Mollie API base URL — currently not consumed (the underlying PaymentClient is constructed from Key only)
Key string Mollie API key (test_... or live_...)
MaxPageSize int Default 250
RedirectFactory Func<IPayment, string>? Builds redirect URL per payment
WebhookFactory Func<IPayment, string>? Builds webhook URL per payment

PaymentService

var svc = new Regira.Payments.Mollie.Services.PaymentService(new MollieConfig
{
    Api             = "https://api.mollie.com/v2",
    Key             = configuration["Mollie:Key"]!,
    RedirectFactory = p => $"https://myapp.com/payment/return/{p.Id}",
    WebhookFactory  = p => $"https://myapp.com/payment/webhook/{p.Id}"
});

// CRUD
IPayment?             payment  = await svc.Details(paymentId);
IEnumerable<IPayment> list     = await svc.List();
var response = await svc.Save(newPayment); // creates payment, sets newPayment.Id
var checkoutUrl = response.CheckoutUrl;    // redirect the customer here
await svc.Delete(payment!);                // cancels the payment

// Handle webhook
await svc.WebHook(paymentId, async p =>
{
    if (p?.Status == PaymentStatus.Paid)
        await orderService.MarkPaid(p.Id);
});

POM

PomSettings

Property Type Description
SenderId string? POM sender ID
SenderContractNumber string? Contract number
Username string? API username
Password string? API password
ExpiresIn int Payment link expiry (seconds)
Mode string? "live" or "test"
AuthApi string? Authentication endpoint
CreatePaylinkApi string Create payment link endpoint
PaylinkStatusApi string Payment status endpoint
WebhookKey string? Webhook HMAC key

PaymentService

var pomSettings = new PomSettings { /* sender + API credentials, endpoints */ };
ISerializer jsonSerializer = new JsonSerializer(); // Regira.Serializing.Newtonsoft.Json
var svc = new Regira.Payments.Pom.PaymentService(pomSettings, jsonSerializer);

// Get payment status
IPayment? existing = await svc.Details("pom-payment-id");

// Create a payment link
var payment = new Payment // Regira.Invoicing.Payments.Models
{
    Amount   = 49.99m,
    Currency = "EUR"
};
await svc.Save(payment);

Save sends Amount and Currency; the sender contract number comes from PomSettings. PomException is thrown on API errors; check StatusCode and PomResponse for details.


Notes

  • Both services can be registered as singletons.
  • The shared contracts (IPayment, IPaymentService, the Payment model, PaymentStatus) ship in the Regira.Invoicing package, under Regira.Invoicing.Payments.Abstractions, .Models and .Enums.
  • POM's PaymentService implements IPaymentService; Mollie's is a standalone class with a richer surface (List, Delete, WebHook, and Save returning CreatePaymentResponse).
  • Mollie uses the official Mollie.Api NuGet client; POM calls its REST API via HttpClient with a token from the auth endpoint (X-Authentication header).

License

Apache License 2.0 — this package contains no license validation and no runtime limits. See LICENSE. A few companion packages are commercially licensed with a free tier; see the licensing overview.

Product 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.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.4.0 96 9/26/2026
6.3.3 97 9/22/2026
6.3.2 96 9/19/2026
6.3.1 93 9/17/2026
6.2.1 120 9/5/2026
6.1.3 107 8/26/2026
6.1.2 117 8/16/2026
6.1.1 109 8/12/2026
6.1.0 105 8/10/2026