#Gkiokan-discount
1 messages · Page 1 of 1 (latest)
And any clue yet?
yes sorry
I thought about the noProrate option when upgrading with a coupon. That should eliminate the previews "unsued time calculation"
But then the user may be charged over the price
still looking into that
Sure. Take your time
just a general question, why are you deleting a subscription item and generating another item? can't you instead replace the item in the same subscription item?
you could update the same subscription item
instead of deleting one and creating another
I am not deleting anything
I don't think it matters in your case
you are passing 2 items in the request that generated this invoice
lemme check
0: {
tax_rates: "",
price: "price_1L5F3mHa5WPIKK5IK9u2kSLl",
quantity: "1"
},
1: {
deleted: "true",
id: "si_LqR8xNVgn6HyRN"
}
},```
Actually I am only swapping out the tier with the subscriptions->update(...) method
It shouldn't show 2 items, thats strange
that doesn't affect the proration, it would still be an issue in this case, I was just curious
maybe it's our internal SDK that does that
As you have said that. In that invoice there are the latest 2 logs but seems to be identical?
I will try no prorate as option when a coupon is used. This should kill the "unsued" amount calculation. Even this doesn't seem to be correct.
so back to your main question
do you want the upgrade to take place at the same time of the subscription update or would you like to wait until the next billing cycle?
I will try no prorate as option when a coupon is used. This should kill the "unsued" amount calculation.
I think with no proration you should be fine
Even this doesn't seem to be correct.
did you try it?
I am about to change the code flow
ok let me know if you need any more help
Is there a way to tell stripe not allowing customers to have positive balance?
unfortunately not
What happens with the balance for a customer if he have a positive balance due the retrieved money?
it means we add that negative amount as a credit to the customer for future invoices
Let's face the fact that I don't want the customers to be able to get their money back once they have paid. Due the prorations and calculations this could lead to problems as sometimes it is not expected when upgrading and downgrading.
do you have a request id?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
can't see any direct request because still trying to figuring it out how stripe does calculate each item. But it is about this invoice in particular where I tried to apply no prorate option. in_1LAtRjHa5WPIKK5Ij4LpR8X0
Hey, taking over here
This is the API request that triggered that Invoice creation: https://dashboard.stripe.com/test/logs/req_TobsVpa5VOLO57
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You're still passing proration_behavior: "always_invoice"
Thanks for the check. Interesting, this shouldn't happen. Lemme see how I can fix that