Skip to content

.NET Changelog

.NET SDK

We are happy to announce the release of our .NET SDK. The SDK is maintained under sumup/sumup-dotnet and covers all of SumUp’s public APIs.

using SumUp;
using var client = new SumUpClient();
var merchantResponse = await client.Merchant.GetAsync();
var merchantCode = merchantResponse.Data?.MerchantProfile?.MerchantCode
?? throw new InvalidOperationException("Merchant code not returned.");
var checkoutResponse = await client.Checkouts.CreateAsync(new CheckoutCreateRequest
{
Amount = 10.00f,
Currency = Currency.Eur,
CheckoutReference = $"checkout-{Guid.NewGuid():N}",
MerchantCode = merchantCode,
Description = "Test payment",
RedirectUrl = "https://example.com/success",
ReturnUrl = "https://example.com/webhook",
});
Console.WriteLine($"Checkout ID: {checkoutResponse.Data?.Id}");

See the repository for more examples and don’t hesitate to let us know if you have any questions.