Download the PHP package oxapay/oxapay-laravel without Composer
On this page you can find all versions of the php package oxapay/oxapay-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package oxapay-laravel
OxaPay Laravel SDK
Official Laravel SDK for OxaPay — accept crypto payments, exchanges, and payouts.
Frameworks: Laravel 8–13
PHP: 8.0+ (Laravel 8–9) / 8.1+ (Laravel 10) / 8.2+ (Laravel 11–12) / 8.3+ (Laravel 13)
Docs: https://docs.oxapay.com
Installation
Publish config/oxapay.php
You can use
--forceflag to overwrite config from packageService provider and facade are auto-discovered.
Add your keys to .env or update oxapay config:
You can define multiple slots.
Quick start
Handling Webhooks (Payments & Payouts)
Available methods
🔹payment
generateInvoice– Create invoice & get payment URL. More detailsgenerateWhiteLabel– White-label payment. More detailsgenerateStaticAddress– Create static deposit address. More detailsrevokeStaticAddress– Revoke static address. More detailsstaticAddressList– List static addresses. More detailsinformation– Single payment information. More detailshistory– Payment history list. More detailsacceptedCurrencies– Accepted currencies. More details
🔹account
balance– Account balance. More details
🔹payout
generate– Request payout. More detailsinformation– Single payout information. More detailshistory– Payout history list. More details
🔹exchange
swapRequest– Swap request. More detailsswapHistory– Swap history. More detailsswapPairs– Swap pairs. More detailsswapCalculate– Swap pre-calc. More detailsswapRate– Swap Quote rate. More details
🔹common
prices– Market prices. More detailscurrencies– Supported crypto. More detailsfiats– Supported fiats. More detailsnetworks– Supported networks. More detailsmonitor– System status. More details
🔹webhook
verify– ValidatesHMACheader (sha512 of raw body).getData– ValidatesHMACheader and return webhook data. More details
Exceptions
All SDK exceptions extend OxaPay\Laravel\Exceptions\OxaPayException:
ValidationRequestException(HTTP 400)InvalidApiKeyException(HTTP 401)NotFoundException(HTTP 404)RateLimitException(HTTP 429)ServerErrorException(HTTP 500)ServiceUnavailableException(HTTP 503)HttpException(network/unknown)MissingApiKeyException(missing api key)MissingTrackIdException(missing track id)MissingAddressException(missing address)WebhookSignatureException(bad/missing HMAC)WebhookNotReceivedException(webhook request was not received)
Security Notes
- Verify webhook HMAC before use input data.
- Whitelist OxaPay IPs on your firewall (ask support).
- Use HTTPS everywhere.
- Store keys in
.env, not code. -
Rotate keys regularly.
Testing (safe & offline)
This package uses Pest, PHPUnit, and Orchestra Testbench for testing.
Dependencies are already listed under require-dev in composer.json.
Run tests with composer:
Run tests with pest:
Compatibility
- Laravel 8–9 → PHP 8.0+
- Laravel 10 → PHP 8.1+
- Laravel 11–12 → PHP 8.2+
Security
If you discover a security vulnerability, please email [email protected].
Do not disclose publicly until it has been fixed.
Contributing
Pull requests are welcome. For major changes, open an issue first.
Run coding standards & static analysis before PR:
License
Apache-2.0 — see LICENSE.
Changelog
See CHANGELOG.md for version history.
OxaPay Made with ♥ for Laravel.
All versions of oxapay-laravel with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0|^12.0