kristories/laravel-stripe-command

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Stripe Command for Laravel

0.0.1 2019-12-22 15:00 UTC

This package is auto-updated.

Last update: 2021-09-22 19:45:25 UTC


README

Build Status styleci Coverage Status

Packagist Packagist Packagist

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.