kristories / laravel-stripe-command
Stripe Command for Laravel
Fund package maintenance!
Patreon
Requires
- php: >=7.2
- illuminate/support: ^6.0
- stripe/stripe-php: ^7.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2022-09-23 10:58:19 UTC
README
Stripe Command for Laravel
Installation
Install via composer
composer require kristories/laravel-stripe-command
Usage
You should configure your Stripe key in your .env
file. You can retrieve your Stripe API keys from the Stripe control panel.
STRIPE_KEY=your-stripe-key
STRIPE_SECRET=your-stripe-secret
Balance
Retrieve balance
▶ php artisan stripe:balance:retrieve +--------+----------+-----------+ | Amount | Currency | Status | +--------+----------+-----------+ | 498895 | usd | available | | 844 | usd | pending | +--------+----------+-----------+
Balance Transaction
List all balance transactions
▶ php artisan stripe:balance-transaction:all +--------------------+--------+--------------+------------+----------+-----------------------+---------------+------+--------+-----------+--------+ | ID | Amount | Available on | Created | Currency | Description | Exchange rate | Fee | Net | Status | Type | +--------------------+--------+--------------+------------+----------+-----------------------+---------------+------+--------+-----------+--------+ | txn_xxxxxxxxxxxxxx | 900 | 1577491200 | 1576962199 | usd | Subscription creation | | 56 | 844 | pending | charge | | txn_xxxxxxxxxxxxxx | 2000 | 1507420800 | 1506845432 | usd | | | 88 | 1912 | available | charge | | txn_xxxxxxxxxxxxxx | 123456 | 1507420800 | 1506845285 | usd | | | 3610 | 119846 | available | charge | | txn_xxxxxxxxxxxxxx | 123456 | 1507420800 | 1506845251 | usd | | | 3610 | 119846 | available | charge | | txn_xxxxxxxxxxxxxx | 123456 | 1507420800 | 1506845154 | usd | | | 3610 | 119846 | available | charge | | txn_xxxxxxxxxxxxxx | 123456 | 1507420800 | 1506844973 | usd | | | 3610 | 119846 | available | charge | | txn_xxxxxxxxxxxxxx | 500 | 1507420800 | 1506840600 | usd | | | 45 | 455 | available | charge | | txn_xxxxxxxxxxxxxx | 123 | 1507420800 | 1506839743 | usd | | | 34 | 89 | available | charge | | txn_xxxxxxxxxxxxxx | 123 | 1507420800 | 1506839741 | usd | | | 34 | 89 | available | charge | | txn_xxxxxxxxxxxxxx | 123 | 1507420800 | 1506839741 | usd | | | 34 | 89 | available | charge | +--------------------+--------+--------------+------------+----------+-----------------------+---------------+------+--------+-----------+--------+
Retrieve a balance transaction
▶ php artisan stripe:balance-transaction:retrieve txn_xxxxxxxxxxxxxx +--------------------+--------+--------------+------------+----------+-----------------------+---------------+-----+-----+---------+--------+ | ID | Amount | Available on | Created | Currency | Description | Exchange rate | Fee | Net | Status | Type | +--------------------+--------+--------------+------------+----------+-----------------------+---------------+-----+-----+---------+--------+ | txn_xxxxxxxxxxxxxx | 900 | 1577491200 | 1576962199 | usd | Subscription creation | | 56 | 844 | pending | charge | +--------------------+--------+--------------+------------+----------+-----------------------+---------------+-----+-----+---------+--------+
Security
If you discover any security related issues, please email w.kristories@gmail.com
instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.