step 1: create a subscription for a plan 2 qty.
subscription = Stripe::Subscription.create(
customer: @customer,
items: [
{
price: @price,
quantity: 2,
}
],
)
step 2: upgrade with qty 4:
item = subscription.items.first
::Stripe::SubscriptionItem.update(item.id, { price: @price, quantity: 4 })
It is giving the error:
Refund amount ($140) is greater than charge amount ($88.00) when I try to cancel and refund to the customer proration amount refund unused amount after subscription cancellation