#kostas-sioupoulis_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1212338639523156049
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kostas-sioupoulis_best-practices, 2 minutes ago, 11 messages
hello this is a follow up to a previous question
subscription = stripe.Subscription.modify(
stripe_subscription.subscription_id,
payment_behavior = 'pending_if_incomplete',
items=[{
'id': subscription['items']['data'][0].id,
'price': stripe_price.id,
}],
proration_behavior='none',
)
๐ happy to help
am I using the modification of the subscription wrongly?
Because there doesn't seem to be a "pending_update": {
"expires_at": 1571194285,
"subscription_items": [
{
"id": "si_09IkI4u3ZypJUk5onGUZpe8O",
"price": "price_CBb6IXqvTLXp3f"
}
]
}, in my subscription that is returned although the payment of the invoice wasn't successful
are you using python?
Yes but I think I found the problem I was adding the pending update to the wrong case
would you mind sharing the request ID? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site 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.
I found the problem and it works now. If the customer has a pending invoice that hasn't been payed will it be attempted to be charged for the ubscription when the next billing cycle comes?
would you mind sharing the invoice ID? would like to understand the use case here before answering
Say he had a 400 dollar subscription and he upgrade to a 500 dollar subscription mid cycle and with proration behavior always_invoice and payment_behavior = 'pending_if_incomplete' , will it be attempted to charge the 400 dollar when the billing cycle occurs
Yes
in_1OokFBIqJXTh2k1UDZhFAwzG
in case the payment of the invoice has failed
just give me a second, I'm taking a look at the invoice
Yes of course, thank you.
ok so the invoice you mentioned will be retried based on your Retry Settings https://dashboard.stripe.com/settings/billing/automatic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
would it be better to turn that off?
hi! I'm taking over this thread.
it's up to you, but why would you want to turn it off?
Hello, sorry for the wait, if the payment of the invoice fails when the date for the renewal of the subscription comes will the customer be charges or try to be charged the original amount before the upgrade?
can you clarify your question with more details? something like:
- customer pays first invoice for $XXX
- customer then upgrade subscriptions to $XXX, so a new Invoice is generated
- then customer doesn't pay the nex invoice
Yes of course
customer pays first invoice for $300 at 1/1/24
customer then upgrade subscriptions to $500 on 28/1/24, so a new Invoice is generated for the prorated amount and the invoice fails
will stripe attemp to charge the custome $300 at 1/2/24?
Assuming the customer hasn't payed the invoice for the prorated amount yet
did you use a pending_update to upgrade the subscription?
Yes (in test and development)
then if the payment fails, the subscription will still be on the $300 plan. so next invoice will be for $300.
I recommend using Test Clock to test this in test mode: https://stripe.com/docs/billing/testing/test-clocks
Okay thank you for your help!