Skip to content

Commit

Permalink
customer return type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timoladoyinbo committed May 18, 2024
1 parent 96fee61 commit b12ed9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Traits/ManagesCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ protected function assertCustomerExists(): void
* Create a Paystack customer for the given model.
*
* @param array $options
* @return \Digikraaft\Paystack\Customer
*
* @throws \Digikraaft\PaystackSubscription\Exceptions\CustomerAlreadyExist
*/
public function createAsPaystackCustomer(array $options = []): PaystackCustomer
public function createAsPaystackCustomer(array $options = [])
{
if ($this->hasPaystackId()) {
throw CustomerAlreadyExist::exists($this);
Expand All @@ -85,6 +83,7 @@ public function createAsPaystackCustomer(array $options = []): PaystackCustomer
// Here we will create the customer instance on Paystack and store the ID of the
// user from Paystack. This ID will allow us to retrieve users from Paystack later when we need to work.
Paystack::setApiKey(config('paystacksubscription.secret', env('PAYSTACK_SECRET')));

$customer = PaystackCustomer::create(
$options,
);
Expand Down

0 comments on commit b12ed9f

Please sign in to comment.