NineDigit.Payme
1.0.2
Prefix Reserved
dotnet add package NineDigit.Payme --version 1.0.2
NuGet\Install-Package NineDigit.Payme -Version 1.0.2
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="NineDigit.Payme" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NineDigit.Payme" Version="1.0.2" />
<PackageReference Include="NineDigit.Payme" />
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 NineDigit.Payme --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NineDigit.Payme, 1.0.2"
#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 NineDigit.Payme@1.0.2
#: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=NineDigit.Payme&version=1.0.2
#tool nuget:?package=NineDigit.Payme&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NineDigit.Payme
🪙 A lightweight .NET library for composing payme.sk payment URLs — strongly typed, fluent, and safe.
✨ Features
- Strongly typed primitives —
IBAN,Amount,CreditorName,PaymentSymbols, etc. - Fluent builders for Payme v1.3 and v2.0
- Guarded input validation using
CommunityToolkit.Diagnostics - Safe normalization and encoding of query parameters
- Compatible with .NET Standard 2.0 — runs on .NET Framework, .NET 6+, MAUI, and Xamarin
💡 Supported Payme Versions
| Version | URL Format | Description |
|---|---|---|
| v1.3 | https://payme.sk/?V=1&... |
Classic query-based Payme URL |
| v2.0 | https://payme.sk/2/{type}/PME?... |
Path-based Payme 2.0 URLs with QR type |
⚙️ Installation
Add the project to your solution (or publish it as a private NuGet package and reference it):
<ItemGroup>
<ProjectReference Include="..\NineDigit.Payme\NineDigit.Payme.csproj" />
</ItemGroup>
🚀 Usage Examples
v1.3 Standard
Uri url = new PaymeV1UrlBuilder()
.WithIban("SK6807200002891987426353")
.WithAmount(200.30m)
.WithCreditorName("Alice Cafee")
.WithDueDate(new DateTime(2025, 10, 08))
.WithVariableSymbol("2546874464")
.WithSpecificSymbol("2019568456")
.WithConstantSymbol("1118")
.WithMessage("Thank you for lunch.")
.Build();
// https://payme.sk/?V=1&IBAN=SK6807200002891987426353&AM=200.30&CC=EUR&DT=20201205&PI=%2FVS2546874464%2FSS2019568456%2FKS1118&MSG=Thank+you+for+lunch.&CN=Alice+Cafee
v2.0 Standard
v2.0 supports multiple payment types, each with its own URL path segment and specific parameters.
Mobile Payments (Dynamic QR Code)
Uri dynamicQrCode = PaymeV2UrlBuilder
.ForMobilePayments(
iban: "SK6807200002891987426353",
amount: 200.30m,
endToEndId: "QR-ab29e346f1d841c8a95a63d857490818",
creditorName: "Alice Cafee")
.WithMessage("Thank you")
.Build();
// https://payme.sk/2/m/PME?IBAN=SK6807200002891987426353&AM=200.30&CC=EUR&PI=QR-ab29e346f1d841c8a95a63d857490818&MSG=Thank+you&CN=Alice+Cafee
Static QR Code
Uri staticQrCode = PaymeV2UrlBuilder
.ForStaticQrCode(
iban: "SK6807200002891987426353",
creditorName: "Alice Cafee")
.WithMessage("Thank you")
.Build();
// https://payme.sk/2/q/PME?IBAN=SK6807200002891987426353&MSG=Thank+you&CN=Alice+Cafee
Person to Person Payment
Uri p2pQrCode = PaymeV2UrlBuilder
.ForPersonToPerson(
iban: "SK6807200002891987426353",
creditorName: "Alice")
.WithAmount(10m)
.WithMessage("Thank you")
.Build();
// https://payme.sk/2/p/PME?IBAN=SK6807200002891987426353&AM=10.00&CC=EUR&MSG=Thank+you&CN=Alice
E-Commerce Payment
Uri eCommerceQrCode = PaymeV2UrlBuilder
.ForEcommerce(
iban: "SK6807200002891987426353",
amount: 200.30m,
paymentSymbols: new PaymentSymbols(
variableSymbol: "2546874464",
specificSymbol: "2019568456",
constantSymbol: "1118"),
creditorName: "Alice Cafee")
.WithMessage("Thank you")
.Build();
// https://payme.sk/2/e/PME?IBAN=SK6807200002891987426353&AM=200.30&CC=EUR&PI=%2FVS2546874464%2FSS2019568456%2FKS1118&MSG=Thank+you&CN=Alice
🧩 Namespaces
NineDigit.Payme— core types and builder APIs
📝 License
Licensed under the MIT License.
© 2025 Nine Digit, s.r.o. — All rights reserved.
| Product | Versions 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.
-
.NETStandard 2.0
- CommunityToolkit.Diagnostics (>= 8.0.0)
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 |
|---|---|---|
| 1.0.2 | 184 | 10/8/2025 |