如何获取Current_Period_end
值,在下面的数组代码中规划数组ID?
Stripe_List Object(
[_apiKey:protected] => sk_test_JankU8huwVhFYlfK7hLp4SPs
[_values:protected] => Array
(
[object] => list
[data] => Array
(
[0] => Stripe_Subscription Object
(
[_apiKey:protected] => sk_test_JankU8huwVhFYlfK7hLp4SPs
[_values:protected] => Array
(
[id] => sub_6u1oFCUsWyRKKp
[object] => subscription
[application_fee_percent] =>
[cancel_at_period_end] =>
[canceled_at] =>
[current_period_end] => 1450268469
[current_period_start] => 1447676469
[customer] => cus_6u1oHUF0VRkpU3
[discount] =>
[ended_at] =>
[metadata] => Stripe_AttachedObject Object
(
[_apiKey:protected] => sk_test_JankU8huwVhFYlfK7hLp4SPs
[_values:protected] => Array
(
)
[_unsavedValues:protected] => Stripe_Util_Set Object
(
[_elts:Stripe_Util_Set:private] => Array
(
)
)
[_transientValues:protected] => Stripe_Util_Set Object
(
[_elts:Stripe_Util_Set:private] => Array
(
)
)
[_retrieveOptions:protected] => Array
(
)
)
[plan] => Stripe_Plan Object
(
[_apiKey:protected] => sk_test_JankU8huwVhFYlfK7hLp4SPs
[_values:protected] => Array
(
[id] => 2
[object] => plan
[amount] => 699
[created] => 1441108548
[currency] => gbp
[interval] => month
[interval_count] => 1
[livemode] =>
[metadata] => Stripe_AttachedObject Object
(
[_apiKey:protected] => sk_test_JankU8huwVhFYlfK7hLp4SPs
[_values:protected] => Array
(
)
[_unsavedValues:protected] => Stripe_Util_Set Object
(
[_elts:Stripe_Util_Set:private] => Array
(
)
)
[_transientValues:protected] => Stripe_Util_Set Object
(
[_elts:Stripe_Util_Set:private] => Array
(
)
)
[_retrieveOptions:protected] => Array
(
)
)
[name] => Basic
[statement_descriptor] =>
[trial_period_days] => 15
[statement_description] =>
)
如何在给定数组中获取Period_end
值?我不知道如何在我之前的条带帐户
我正在使用$customer->subscription
检索客户的订阅价值,但现在在该子订单对象中使用$customer->subscriptions
检索订阅,以获取我的订阅数组是否正确?