mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-09-22 00:13:46 -04:00
Subscription Module Update
Payment codes changes and fix paypal payment failed
This commit is contained in:
@@ -32,11 +32,11 @@ class PaymentCodeController extends Controller
|
||||
|
||||
$paymentCodes = $this->paymentCodeRepository->all();
|
||||
$subscription_plans = SubscriptionPlanPrice::with('plan')->where('payment','upfront')->where('payment_method','prepaid')->whereHas('plan', function ($query) {
|
||||
$query->where('status', 1);
|
||||
$query->where('prepaid', 1)->where('status', 1);
|
||||
})->get()->map(function($price, $key) {
|
||||
return [
|
||||
'id' => $price->id,
|
||||
'label' => $price->plan->title.' - '.$price->access_expire_duration.' Months'
|
||||
'label' => $price->plan->title.' - '.$price->total_credits.' Credits for '.$price->access_expire_duration.' '.$price->access_expire_duration_type.' ($'.number_format($price->price,2).')'
|
||||
];
|
||||
});
|
||||
return response()->json([
|
||||
|
||||
Reference in New Issue
Block a user