@@ -142,7 +142,7 @@ class StripeWebhookController extends Controller
|
||||
$referralUserSubscriptionData->current_period_start = date('Y-m-d H:i:s', $SubscriptionObject->current_period_start);
|
||||
$referralUserSubscriptionData->current_period_end = date('Y-m-d H:i:s', $SubscriptionObject->current_period_end);
|
||||
$referralUserSubscriptionData->next_payment_date = date('Y-m-d H:i:s', $upcoming_invoice->next_payment_attempt);
|
||||
$referralUserSubscriptionData->next_invoice_amount = $upcoming_invoice->amount_due;
|
||||
$referralUserSubscriptionData->next_invoice_amount = $upcoming_invoice->amount_due / 100;
|
||||
|
||||
$referralUserSubscriptionData->save();
|
||||
|
||||
@@ -191,7 +191,7 @@ class StripeWebhookController extends Controller
|
||||
|
||||
'status' => 'complete',
|
||||
'next_payment_date' => date('Y-m-d H:i:s', $upcoming_invoice->next_payment_attempt),
|
||||
'next_invoice_amount' => $upcoming_invoice->amount_due
|
||||
'next_invoice_amount' => $upcoming_invoice->amount_due / 100
|
||||
|
||||
|
||||
]
|
||||
@@ -230,7 +230,7 @@ class StripeWebhookController extends Controller
|
||||
$newUserSubscriptionDetails->current_period_start = date('Y-m-d H:i:s', $SubscriptionObject->current_period_start);
|
||||
$newUserSubscriptionDetails->current_period_end = date('Y-m-d H:i:s', $SubscriptionObject->current_period_end);
|
||||
$newUserSubscriptionDetails->next_payment_date = date('Y-m-d H:i:s', $upcoming_invoice->next_payment_attempt);
|
||||
$newUserSubscriptionDetails->next_invoice_amount = $upcoming_invoice->amount_due;
|
||||
$newUserSubscriptionDetails->next_invoice_amount = $upcoming_invoice->amount_due / 100;
|
||||
|
||||
$newUserSubscriptionDetails->save();
|
||||
|
||||
|
||||
@@ -49,6 +49,13 @@
|
||||
<input type="text" class="form-control other-input mt-3" readonly
|
||||
value="${{ $isSubscribedUser->amount }}">
|
||||
</div>
|
||||
|
||||
<div class="inn-group my-4">
|
||||
<label class="comm-head" for="">Next Renual Due Amount</label>
|
||||
<input type="text" class="form-control other-input mt-3" readonly
|
||||
value="${{ $isSubscribedUser->next_invoice_amount }}">
|
||||
</div>
|
||||
|
||||
<div class="inn-group my-4">
|
||||
<label class="comm-head" for="">Renewal date</label>
|
||||
<input type="text" class="form-control other-input mt-3" readonly
|
||||
|
||||
Reference in New Issue
Block a user