The .NET SDK is available on NuGet. Zero external dependencies — uses System.Net.Http and System.Text.Json.

Requirements

  • .NET 6.0, 7.0, 8.0, or 9.0
  • Orcuspay access and secret keys

Install

Create a checkout session

Retrieve a checkout session

List payments

Error handling

Available methods

  • CreateCheckoutSessionAsync(params) — Create a hosted checkout page
  • GetCheckoutSessionAsync(id) — Retrieve a checkout session
  • ListPaymentsAsync(limit?, cursor?, status?) — List payments with pagination
  • GetPaymentAsync(id) — Retrieve a single payment
  • ListPaymentLinksAsync(limit?, cursor?) — List payment links
  • CreatePaymentLinkAsync(params) — Create a payment link
  • GetPaymentLinkAsync(id) — Retrieve a payment link
  • StatusAsync() — Check API status
All methods accept an optional CancellationToken.

API URL

The SDK defaults to https://brain.orcuspay.com/api/v1. For self-hosted instances: