Skip to content

jandebonnet/mollie-api-csharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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");

PaymentMethods

PaymentMethods methods = mollieClient.GetPaymentMethods();
foreach (PaymentMethod method in methods.data)
{
	Console.WriteLine(method.image.normal);
}

About

Mollie API client for C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%