The Laravel SDK is available at OrcusHQ/orcuspay-laravel.

Requirements

  • PHP 8.1 or newer
  • Laravel 10, 11, or 12
  • Orcuspay access and secret keys

Install

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

Publish config

Environment variables

Create a checkout session

Notes

  • Use ak_test_ and sk_test_ keys while developing.
  • Switch to ak_prod_ and sk_prod_ only after a successful test payment.
  • Never expose the secret key in frontend JavaScript.