📜  如何从会话条带中获取订阅 ID - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:55.182000             🧑  作者: Mango

代码示例1
$stripe = new \Stripe\StripeClient(YOURSTRIPE_SECRETKEY);
$stripe_customer = $stripe->customers->retrieve($payerid, [ 'expand' => ['subscriptions'] ]);
$stripe_status = $stripe_customer->subscriptions->data[0]->status;