File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,9 @@ protected function assertCustomerExists(): void
68
68
* Create a Paystack customer for the given model.
69
69
*
70
70
* @param array $options
71
- * @return \Digikraaft\Paystack\Customer
72
- *
73
71
* @throws \Digikraaft\PaystackSubscription\Exceptions\CustomerAlreadyExist
74
72
*/
75
- public function createAsPaystackCustomer (array $ options = []): PaystackCustomer
73
+ public function createAsPaystackCustomer (array $ options = [])
76
74
{
77
75
if ($ this ->hasPaystackId ()) {
78
76
throw CustomerAlreadyExist::exists ($ this );
@@ -85,6 +83,7 @@ public function createAsPaystackCustomer(array $options = []): PaystackCustomer
85
83
// Here we will create the customer instance on Paystack and store the ID of the
86
84
// user from Paystack. This ID will allow us to retrieve users from Paystack later when we need to work.
87
85
Paystack::setApiKey (config ('paystacksubscription.secret ' , env ('PAYSTACK_SECRET ' )));
86
+
88
87
$ customer = PaystackCustomer::create (
89
88
$ options ,
90
89
);
You can’t perform that action at this time.
0 commit comments