Skip to content

Moxh3/mollie-api-csharp

 
 

Repository files navigation

mollie-api-csharp

Mollie API client for C#

How to use the API client

Initializing the Mollie API client, and setting your API key.

MollieClient mollieClient = new MollieClient();
mollieClient.setApiKey("your_api_key_here");

Loading iDeal issuers

Issuers issuers = mollieClient.GetIssuers();
foreach (Issuer issuer in issuers.data)
{
  Console.WriteLine(issuer.name);
}

Creating a new payment.

Payment payment = new Payment 
{ 
	amount = 99.99M, 
	description = "Test payment", 
	redirectUrl = "http://www.myshop.net/completed/?orderId=1245",
};
PaymentStatus paymentStatus = mollieClient.StartPayment(payment);

Getting payment status

PaymentStatus paymentStatus = mollieClient.GetStatus("id12345");

Refunds

RefundStatus refundStatus = mollieClient.Refund("id12345");

About

Mollie API client for C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%