Accept crypto payments in .NET
Add non-custodial crypto checkout to your .NET app: create an invoice, send the buyer to the hosted checkout, and fulfill on a signed webhook. Funds settle straight to your own wallet, $0 platform fees.
Install
// uses HttpClient, no SDK needed
Create an invoice and redirect to checkout
var body = new StringContent(
JsonSerializer.Serialize(new { amount_usd_cents = 5000, memo = "Order" }),
Encoding.UTF8, "application/json");
http.DefaultRequestHeaders.Authorization = new("Bearer", Environment.GetEnvironmentVariable("SHIELDZ_API_KEY"));
var res = await http.PostAsync("https://shieldz.cash/api/v1/invoices", body);
// parse res into invoice, redirect to invoice.pay_url
Verify the webhook
// Verify the HMAC over "<t>.<rawBody>"
static bool Verify(string raw, string header, string secret) {
var parts = header.Split(',');
var t = parts.First(p => p.Trim().StartsWith("t=")).Trim()[2..];
var v1 = parts.First(p => p.Trim().StartsWith("v1=")).Trim()[3..];
using var h = new HMACSHA256(Encoding.UTF8.GetBytes(secret));
var expected = Convert.ToHexString(h.ComputeHash(Encoding.UTF8.GetBytes(t + "." + raw))).ToLower();
return v1 == expected;
}
Full reference: API docs, SDKs, API reference.
Explore Shieldz
Crypto payment gateway: overview, non-custodial, Zcash.
Accept a coin: Bitcoin, USDC, USDT, Zcash.
Compare: vs Coinbase Commerce, vs BTCPay Server, vs ZGo, vs CryptAPI, vs NOWPayments, vs Cryptomus, vs BitPay, vs CoinGate, vs OpenNode, vs Plisio, vs BlockBee, vs CoinPayments.
Use cases: For freelancers, For creators, For open-source projects, For online stores, For SaaS, For VPN & hosting providers, For agencies, For nonprofits, For digital sellers.
Guides: Node.js, FastAPI, .NET, WooCommerce.
Build: SDKs, API reference, quickstart. Learn: overview, blog, how it works, supported coins, pricing, is it safe, verify it yourself.