[英]Laravel - Stripe still showing archived plans
我在我的 controller 中使用了這個:
\Stripe\Stripe::setApiKey(config('services.stripe.secret'));
$plans = \Stripe\Plan::all();
這是我的刀片文件中的 foreach:
@foreach($plans as $plan)
<div class="form-check">
<input class="form-check-input" name="plan" type="radio" id="radio{{$plan->id}}" value="{{$plan->id}}" checked />
<label class="form-check-label" for="radio{{$plan->id}}">{{$plan->product->name}} (${{$plan->amount/100}}/{{$plan->interval}})</label>
</div>
@endforeach
但它仍然顯示存檔的產品和價格?? 如何隱藏存檔的產品和價格?
搜索了一圈也沒找到答案
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.