#yogeshwari
1 messages · Page 1 of 1 (latest)
I don't understand the question. Can you be more explicit?
For Ex: User have have Pro Subscription Monthly and then user upgrade this subscription to Pro Yearly.
Then Pro subscription shows active so is it correct?
$response=$stripe->subscriptions->update($user->stripe_subscription_id, [
'cancel_at_period_end' => false,
'proration_behavior' => 'always_invoice',
'items' => [
[
'id' => $subscription->items->data[0]->id,
'price' => $price_id,
],
],
]);
I have used this code
I still don't understand. Are you seeing an error when you test it? Are you using Test Clocks to observe the subscription's behavior? https://stripe.com/docs/billing/testing/test-clocks