Answers for "how to get the subscription id from a session stripe"

0

how to get the subscription id from a session stripe

$stripe = new \Stripe\StripeClient(YOURSTRIPE_SECRETKEY);
$stripe_customer = $stripe->customers->retrieve($payerid, [ 'expand' => ['subscriptions'] ]);
$stripe_status = $stripe_customer->subscriptions->data[0]->status;
Posted by: Guest on July-21-2021

Code answers related to "how to get the subscription id from a session stripe"

Browse Popular Code Answers by Language