#kostas-sioupoulis_code

1 messages ยท Page 1 of 1 (latest)

wary quiverBOT
#

๐Ÿ‘‹ 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!

wild oreBOT
#

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.

stoic jungle
#

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',
)

wild oreBOT
odd skiff
#

๐Ÿ‘‹ happy to help

stoic jungle
#

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

odd skiff
#

are you using python?

stoic jungle
#

Yes but I think I found the problem I was adding the pending update to the wrong case

odd skiff
stoic jungle
#

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?

odd skiff
#

would you mind sharing the invoice ID? would like to understand the use case here before answering

stoic jungle
#

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

stoic jungle
odd skiff
#

just give me a second, I'm taking a look at the invoice

stoic jungle
#

Yes of course, thank you.

odd skiff
stoic jungle
#

would it be better to turn that off?

dusk basin
#

hi! I'm taking over this thread.

#

it's up to you, but why would you want to turn it off?

stoic jungle
#

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?

dusk basin
#

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
stoic jungle
#

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

dusk basin
#

did you use a pending_update to upgrade the subscription?

stoic jungle
#

Yes (in test and development)

dusk basin
#

then if the payment fails, the subscription will still be on the $300 plan. so next invoice will be for $300.

stoic jungle
#

Okay thank you for your help!