Mollie.Api
4.10.2
dotnet add package Mollie.Api --version 4.10.2
NuGet\Install-Package Mollie.Api -Version 4.10.2
<PackageReference Include="Mollie.Api" Version="4.10.2" />
<PackageVersion Include="Mollie.Api" Version="4.10.2" />
<PackageReference Include="Mollie.Api" />
paket add Mollie.Api --version 4.10.2
#r "nuget: Mollie.Api, 4.10.2"
#addin nuget:?package=Mollie.Api&version=4.10.2
#tool nuget:?package=Mollie.Api&version=4.10.2
Mollie Api Client for .NET
Easily integrate the Mollie payment provider into your .NET application.
Full documentation of this library is available on the Wiki β including usage examples, API references, and integration tips.
Mollie offers excellent API documentation that we highly recommend reviewing before using this library. If you encounter any issues or have feature requests, feel free to open an issue.
π¬ Need help with integration?
Iβm happy to assist you with your implementation or questions. Feel free to connect with me on LinkedIn β Iβd love to help!
Have feedback or ideas? Join the official Mollie Developer Discord or open an issue.
π Table of Contents
- Sponsor This Project
- Full documentation
- Getting Started
- Supported APIs
- Contributions
- Supported .NET Versions
π Sponsor This Project
This project is proudly sponsored by Mollie β thank you for supporting open source and developer tooling!
If this library has helped you or saved you time, please consider sponsoring me on GitHub as well. Your support helps me keep improving the library and providing integration help to the community!
π Full Documentation
Looking for the full API docs, usage examples, and advanced guides?
π Check out the full Wiki here:
β‘οΈ https://github.com/Viincenttt/MollieApi/wiki
You'll find:
- Getting started walkthroughs
- All supported APIs and code samples
- Best practices for integration
π Getting started
Install via NuGet:
Install-Package Mollie.Api
Dependency Injection
You can register all API client interfaces using the built-in DI extension:
builder.Services.AddMollieApi(options => {
options.ApiKey = builder.Configuration["Mollie:ApiKey"];
options.RetryPolicy = MollieHttpRetryPolicies.TransientHttpErrorRetryPolicy();
});
Each API (e.g. payments, customers, mandates) has its own dedicated API client class and interface:
IPaymentClient
,PaymentClient
ICustomerClient
,CustomerClient
ISubscriptionClient
,SubscriptionClient
IMandateClient
,MandateClient
- ... and more
After registering via DI, inject the interface you need in your services or controllers.
Manual Instantiation
If you prefer not to use DI, you can manually instantiate a client:
using IPaymentClient paymentClient = new PaymentClient("{yourApiKey}", new HttpClient());
If you do not provide a HttpClient, one will be created automatically β in that case, remember to dispose the client properly.
π Create a Payment in under a minute
Hereβs a quick example of how to create an iDEAL payment for β¬100:
using IPaymentClient paymentClient = new PaymentClient("{yourApiKey}", new HttpClient());
var paymentRequest = new PaymentRequest {
Amount = new Amount(Currency.EUR, 100.00m),
Description = "The .NET library makes creating payments so easy!",
RedirectUrl = "https://github.com/Viincenttt/MollieApi",
Method = PaymentMethod.Ideal
};
PaymentResponse paymentResponse = await paymentClient.CreatePaymentAsync(paymentRequest);
// Redirect your user to the checkout URL
string checkoutUrl = paymentResponse.Links.Checkout.Href;
π§ͺ Blazor Example Project
Want to see the library in action? Check out the full-featured .NET Blazor example project, which demonstrates real-world usage of several APIs:
- Payments
- Orders
- Customers
- Mandates
- Subscriptions
- Payment Methods
- Terminals
π View the Example Project on GitHub
Itβs a great starting point if youβre new to Mollie or want to explore advanced scenarios like multi-step checkouts or managing recurring payments.
π¦ Supported API's
This library currently supports the following API's:
- Payment API
- PaymentMethod API
- PaymentLink API
- Customer API
- Mandate API
- Subscription API
- Refund API
- Connect API
- Chargeback API (documentation coming soon)
- Invoice API (documentation coming soon)
- Permissions API (documentation coming soon)
- Profile API
- Organizations API
- Order API
- Capture API
- Onboarding API
- Balances API
- Terminal API (documentation coming soon)
- ClientLink API (documentation coming soon)
- Wallet API (documentation coming soon)
- Client API (documentation coming soon)
- Capability API (documentation coming soon)
π€ Contributions
Spotted a bug or want to add a new feature? Contributions are welcome! Please target the latest development
branch and include a clear description of your changes.
β Supported .NET Versions
This library targets .NET Standard 2.0, making it compatible with a wide range of platforms: | .NET implementation | 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, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 | | Mono | 5.4, 6.4 | | Universal Windows Platform | 10.0.16299, TBD | | Xamarin.iOS | 10.14, 12.16 | | Xamarin.Mac | 3.8, 5.16 | | Xamarin.Android | 8.0, 10.0 | | Unity | 2018.1 |
β οΈ Note: This library uses the required keyword in some model classes. Your project must target C# 11 or higher.
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. |
-
.NETStandard 2.0
- Microsoft.Extensions.Http.Polly (>= 9.0.1)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Mollie.Api:
Package | Downloads |
---|---|
Vendr.PaymentProviders.Mollie
Mollie payment provider for Vendr, the eCommerce package for Umbraco |
|
Umbraco.Commerce.PaymentProviders.Mollie
Mollie payment provider for Umbraco Commerce |
|
GeeksCoreLibrary.Modules.Payments.Mollie
Mollie plugin for the order process of the GeeksCoreLibrary. |
|
Soletis.Mollie
Package Description |
|
ForEach.Connectors.Mollie
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.10.2 | 990 | 5/15/2025 |
4.10.1 | 488 | 5/14/2025 |
4.10.0 | 242 | 5/14/2025 |
4.9.0 | 3,043 | 4/14/2025 |
4.8.0 | 2,231 | 3/28/2025 |
4.7.0 | 1,891 | 3/20/2025 |
4.6.0 | 6,198 | 2/25/2025 |
4.5.0 | 10,497 | 1/19/2025 |
4.4.2 | 31,995 | 11/12/2024 |
4.4.1 | 22,255 | 9/29/2024 |
4.4.0 | 11,303 | 8/17/2024 |
4.3.0 | 11,229 | 7/10/2024 |
4.2.0 | 1,162 | 7/7/2024 |
4.1.0 | 3,727 | 6/30/2024 |
4.0.0 | 12,727 | 6/7/2024 |
3.6.0 | 60,662 | 3/31/2024 |
3.5.1 | 7,217 | 3/10/2024 |
3.5.0 | 25,456 | 12/28/2023 |
3.4.1 | 5,952 | 12/2/2023 |
3.3.0 | 19,037 | 9/22/2023 |
3.2.0 | 4,281 | 9/12/2023 |
3.1.0 | 1,722 | 9/6/2023 |
3.0.0 | 3,044 | 8/26/2023 |
2.3.0.2 | 16,594 | 7/31/2023 |
2.3.0.1 | 29,747 | 5/30/2023 |
2.3.0 | 1,710 | 5/27/2023 |
2.2.0.4 | 25,337 | 3/14/2023 |
2.2.0.3 | 13,495 | 1/27/2023 |
2.2.0.2 | 3,783 | 1/16/2023 |
2.2.0.1 | 12,590 | 12/30/2022 |
2.2.0 | 7,215 | 12/22/2022 |
2.1.0.15 | 37,543 | 11/14/2022 |
2.1.0.14 | 23,560 | 9/23/2022 |
2.1.0.13 | 869 | 9/23/2022 |
2.1.0.12 | 28,141 | 9/9/2022 |
2.1.0.11 | 1,338 | 9/3/2022 |
2.1.0.10 | 44,298 | 7/25/2022 |
2.1.0.9 | 86,199 | 4/2/2022 |
2.1.0.8 | 294,012 | 7/11/2021 |
2.1.0.7 | 30,435 | 5/22/2021 |
2.1.0.6 | 8,585 | 4/24/2021 |
2.1.0.5 | 62,676 | 2/8/2021 |
2.1.0.4 | 10,327 | 1/15/2021 |
2.1.0.3 | 15,915 | 12/5/2020 |
2.1.0.2 | 5,651 | 11/16/2020 |
2.1.0.1 | 18,009 | 10/22/2020 |
2.1.0 | 21,874 | 8/5/2020 |
2.0.7.4 | 22,990 | 5/21/2020 |
2.0.7.3 | 2,748 | 5/4/2020 |
2.0.7.2 | 10,840 | 3/31/2020 |
2.0.7.1 | 35,813 | 12/4/2019 |
2.0.7 | 1,654 | 11/23/2019 |
2.0.6 | 44,683 | 5/23/2019 |
2.0.5 | 30,699 | 4/15/2019 |
2.0.4 | 10,539 | 3/5/2019 |
2.0.3 | 8,456 | 2/8/2019 |
2.0.2 | 6,295 | 11/27/2018 |
2.0.1.1 | 11,913 | 8/30/2018 |
2.0.1 | 1,461 | 8/28/2018 |
2.0.0.1 | 1,540 | 8/14/2018 |
2.0.0 | 1,663 | 8/12/2018 |
1.5.2 | 10,128 | 5/24/2018 |
1.5.1 | 9,591 | 3/4/2018 |
1.5.0 | 4,117 | 12/14/2017 |
1.4.4.1 | 41,947 | 8/13/2017 |
1.4.4 | 1,785 | 8/8/2017 |
1.4.3 | 2,759 | 8/5/2017 |
1.4.2 | 2,808 | 7/25/2017 |
1.4.0 | 12,346 | 1/6/2017 |
1.3.7 | 31,083 | 10/11/2016 |
1.3.6 | 5,296 | 9/22/2016 |
1.3.5 | 1,879 | 8/31/2016 |
1.3.4 | 1,880 | 8/2/2016 |
1.3.3 | 1,614 | 7/22/2016 |
1.3.2 | 1,783 | 7/11/2016 |
1.3.1 | 2,322 | 2/20/2016 |
1.3.0 | 1,680 | 2/19/2016 |
1.2.0 | 1,590 | 2/18/2016 |
1.1.2 | 1,671 | 2/17/2016 |