-3
現在、私はアクティブな契約を持っているStripeの顧客を取得することができますが、未払い、past_due、キャンセルのような他の購読ステータスを取得したいと思います。取り消し、未払い、または過去の期限付きのストリーミングを取得する方法
$customer = \Stripe\Customer::retrieve($customer_id);
$customer_subscriptions_list = $customer->subscriptions->all(array())['data'];
$customer_subscriptions = array();
foreach ($customer_subscriptions_list as $customer_subscription) {
$customer_subscriptions[] = $customer->subscriptions->retrieve($customer_subscription['id']);
}
return $customer_subscriptions;
この問題を解決する方法はありますか?
Stripe APIのドキュメントを読んでいる場合がありますか? –
それでも、あなたの質問への答えを見つけるのに約20秒かかりました... –
答えがdocs:https://stripe.com/に直接載っているので、私はこの質問をオフトピックとして閉じることにしましたdocs/api#list_subscriptions – koopajah