The PHP SDK is available at OrcusHQ/orcuspay-php.

Requirements

  • PHP 8.1 or newer
  • curl extension
  • json extension
  • Orcuspay access and secret keys

Install

If the package is not published to Packagist yet, install from GitHub:

Create a checkout session

Available methods

  • createCheckoutSession(array $payload)
  • retrieveCheckoutSession(string $sessionId)
  • listPayments(array $query = [])
  • getPayment(string $id)
  • listPaymentLinks(array $query = [])
  • createPaymentLink(array $payload)
  • getPaymentLink(string $id)

API URL

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