- paystack test

- FEB
This commit is contained in:
Čarodej
2021-11-08 09:27:50 +01:00
parent 18ff8a6dc7
commit 9d52da4e3a
94 changed files with 232 additions and 194 deletions

View File

@@ -21,8 +21,8 @@ class UserResource extends JsonResource
'type' => 'user',
'attributes' => [
'storage_capacity' => $this->settings->storage_capacity,
'subscription' => $this->subscribed('main'),
'incomplete_payment' => $this->hasIncompletePayment('main') ? route('cashier.payment', $this->subscription('main')->latestPayment()->id) : null,
//'subscription' => $this->subscribed('main'),
//'incomplete_payment' => $this->hasIncompletePayment('main') ? route('cashier.payment', $this->subscription('main')->latestPayment()->id) : null,
'stripe_customer' => is_null($this->stripe_id) ? false : true,
'email' => is_demo() ? obfuscate_email($this->email) : $this->email,
'role' => $this->role,