Mollie API client for C#
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");