Download the PHP package ankurk91/laravel-stripe-exceptions without Composer
On this page you can find all versions of the php package ankurk91/laravel-stripe-exceptions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ankurk91/laravel-stripe-exceptions
More information about ankurk91/laravel-stripe-exceptions
Files in ankurk91/laravel-stripe-exceptions
Package laravel-stripe-exceptions
Short Description Handle Stripe exceptions gracefully in Laravel php framework.
License MIT
Homepage https://github.com/ankurk91/laravel-stripe-exceptions
Informations about the package laravel-stripe-exceptions
Stripe Exceptions for Laravel
This package makes it easy to handle Stripe exceptions in Laravel
How do you handle Stripe errors? Are you repeating same code again and again?
Installation
You can install the package via composer:
Usage
Handle Stripe charge/transfer exceptions by wrapping the API calls in try/catch like:
Handle Stripe connect exceptions:
Modifying error messages
You can publish the translation messages via this command
Features
- Takes advantage of Laravel's inbuilt Reportable & Renderable Exceptions.
- Reports all exceptions when
APP_DEBUG
istrue
- Prevents logging of exceptions caused by user input, for example
Invalid Card
- Captures logged-in user information when an exception gets reported
Security
If you discover any security issues, please email pro.ankurk1[at]gmail[dot]com
instead of using the issue tracker.
Changelog
Please see CHANGELOG for more information what has changed recently.
License
The MIT License.
All versions of laravel-stripe-exceptions with dependencies
illuminate/http Version ^10.0 || ^11.0
illuminate/support Version ^10.0 || ^11.0
illuminate/translation Version ^10.0 || ^11.0
stripe/stripe-php Version ^12.0 || ^13.0 || ^14.0 || ^15.0 || ^16.0