SumUpDeveloper
Dashboard

.NET SDK

We are happy to announce the release of our .NET(Opens in a new tab) SDK. The SDK is maintained under sumup/sumup-dotnet(Opens in a new tab) 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(Opens in a new tab) and don’t hesitate to let us know if you have any questions.

SDK.NET

Type to search…