Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Jan 23, 2018
1 parent d2ef33e commit 0756845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StripeConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ public static function createCustomer($token, $from, $params = [])
*/
private static function create($user, $id_key, $callback) {
self::prepare();
$customer = self::getStripeModel($user);
$user = self::getStripeModel($user);
if (!$user->$id_key) {
$user->$id_key = call_user_func($callback)->id;
$user->save();
}
return $customer;
return $user;
}

/**
Expand Down

0 comments on commit 0756845

Please sign in to comment.