diff --git a/readme.md b/readme.md index 4bfb6a1..9745812 100644 --- a/readme.md +++ b/readme.md @@ -81,10 +81,10 @@ Route::get('/connect', function () { })->middleware(['auth']); ``` -Once a user's Stripe account is all connected and active, you can start sending them payments: +Once a user's Stripe account is all connected and active, you can start creating transfers: ```php -auth()->user()->pay(10000, 'usd'); +auth()->user()->transfer(10000, 'usd'); ``` > [!NOTE] diff --git a/src/Traits/Payable.php b/src/Traits/Payable.php index 8d36ab9..d24571b 100644 --- a/src/Traits/Payable.php +++ b/src/Traits/Payable.php @@ -71,7 +71,7 @@ public function getStripeAccountLink(LinkType $type = LinkType::Onboarding): str return $link->url; } - public function pay($amount, $currency): Transfer + public function transfer($amount, $currency): Transfer { // TODO: capture this in the database, which may allow us to do a reversal later return static::$stripe->transfers->create([