Download the PHP package nzovopay/noderpay-laravel without Composer
On this page you can find all versions of the php package nzovopay/noderpay-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package noderpay-laravel
nzovopay/noderpay-laravel
Laravel service provider, facade, config, and Artisan tooling for the NoderPay API. This package is a thin wrapper around noderpay/noderpay-php — it contains no NoderPay API logic of its own.
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
Installation
The service provider and NoderPay facade are registered automatically via Laravel package discovery — no manual registration needed.
Publish the config file:
This creates config/noderpay.php. Add the following to your .env:
NODERPAY_BASE_URL and NODERPAY_WEBHOOK_SECRET are optional. The base URL defaults to the production API; only override it for a sandbox/test environment.
Usage
Facade
Dependency injection
Both the facade and constructor injection resolve the same singleton instance from the container — there's only ever one configured client per request.
Testing the connection
This command never prints your full API key. On failure, it reports the API's error message and exits non-zero, so it's safe to use in deploy-verification scripts.
Webhooks
This package does not register a webhook route or controller for you — NoderPay account setups and route naming vary too much per app to guess safely. Register your own route and controller using the facade:
Remember to exclude this route from CSRF protection (Laravel's VerifyCsrfToken middleware), since NoderPay's webhook requests won't carry a Laravel session/CSRF token.
Signature verification caveat: the Merchant-Sig header format (sha256=<hex digest>) and algorithm (HMAC-SHA256) are confirmed, but the exact signing input has only been verified as "the raw request body" — see the SDK's own README for details. Always pass $request->getContent() (the raw body), never $request->all() or re-encoded JSON, since re-serialization can change byte-for-byte content and break signature verification even with a correct secret.
Configuration reference
| Config key | Env variable | Default |
|---|---|---|
api_key |
NODERPAY_API_KEY |
— (required) |
store_id |
NODERPAY_STORE_ID |
— (required) |
base_url |
NODERPAY_BASE_URL |
https://api.noderpay.com |
webhook_secret |
NODERPAY_WEBHOOK_SECRET |
null |
timeout |
NODERPAY_TIMEOUT |
25 |
connect_timeout |
NODERPAY_CONNECT_TIMEOUT |
5 |
max_retries |
NODERPAY_MAX_RETRIES |
2 |
debug |
NODERPAY_DEBUG |
false |
If api_key or store_id is missing when the container tries to resolve the NoderPay client, a RuntimeException is thrown immediately with a message telling you which env vars to set — not a confusing failure deep inside an HTTP call.
Testing this package
Tests use Orchestra Testbench to boot a minimal Laravel app, and a mocked HTTP handler for the Artisan command test — no live NoderPay credentials or network access required.
License
MIT. See LICENSE.
All versions of noderpay-laravel with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
nzovopay/noderpay-php Version ^1.0