Skip to content

This project allows you to easily add the Mollie payment provider to your application.

License

Notifications You must be signed in to change notification settings

Viincenttt/MollieApi

Repository files navigation

MollieApi

This project allows you to easily add the Mollie payment provider to your application. Mollie has excellent documentation which I highly recommend you read before using this library.

Support

If you have encounter any issues while using this library or have any feature requests, feel free to open an issue on GitHub. If you need help integrating the Mollie API into your .NET application, please contact me on LinkedIn.

Want to chat with other developers regarding the Mollie API? The official Mollie developer Discord is a great place to provide feedback, ask questions and chat with other developers: Mollie Developer Discord

Contributions

Have you spotted a bug or want to add a missing feature? All pull requests are welcome! Please provide a description of the bug or feature you have fixed/added. Make sure to target the latest development branch.

Getting started and documentation

The library is easy and simple to use. Take a look at the getting started guide and create your first payment using the Mollie API in no time. For the full documentation of all library functions, please take a look at the documentation on the Wiki. There is also a .NET Blazor example project available that displays various features of the library.

Creating a payment in under a minute

Install the NuGet package

Install-Package Mollie.Api

Example code to create a iDeal payment for €100

using IPaymentClient paymentClient = new PaymentClient("{yourApiKey}", new HttpClient());
PaymentRequest paymentRequest = new PaymentRequest() {
    Amount = new Amount(Currency.EUR, 100.00m),
    Description = "Test payment of the example project",
    RedirectUrl = "http://google.com",
	Method = Mollie.Api.Models.Payment.PaymentMethod.Ideal
};
PaymentResponse paymentResponse = await paymentClient.CreatePaymentAsync(paymentRequest);
string checkoutUrl = paymentResponse.Links.Checkout.Href;

Supported .NET versions

This library is built using .NET standard 2.0. This means that the package supports the following .NET implementations:

.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
.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

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

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
  • Invoice API
  • Permissions API
  • Profile API
  • Organizations API
  • Order API
  • Capture API
  • Onboarding API
  • Balances API
  • Terminal API
  • ClientLink API
  • Wallet API

About

This project allows you to easily add the Mollie payment provider to your application.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages