The Node.js SDK is available at OrcusHQ/orcuspay-node. Zero dependencies, written in TypeScript.

Requirements

  • Node.js 14 or newer
  • Orcuspay access and secret keys

Install

Create a checkout session

Retrieve a checkout session

List payments

Error handling

Available methods

  • createCheckoutSession(params) — Create a hosted checkout page
  • getCheckoutSession(id) — Retrieve a checkout session
  • listPayments(params?) — List payments with pagination
  • getPayment(id) — Retrieve a single payment
  • listPaymentLinks(params?) — List payment links
  • createPaymentLink(params) — Create a payment link
  • getPaymentLink(id) — Retrieve a payment link
  • status() — Check API status

API URL

The SDK defaults to https://brain.orcuspay.com/api/v1. Only change this if Orcuspay support gives you a different API host.