#shahriyar_api

1 messages ¡ Page 1 of 1 (latest)

runic brambleBOT
#

👋 Welcome to your new thread!

⏲️ 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.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 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/1283452766873976902

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

dull sonnet
#

So I have created a subscription with price
1.99 USD

Then changed the plan immediately to 3.99 USD with proration_behavior: "create_prorations"

#

But it looks like I am going to get charged 5.99 after the end of the period

runic brambleBOT
dull sonnet
slim moss
#

Can you share the example subscription ID?

#

Was the first invoice paid?

dull sonnet
#

sub_1PxsMLA1aNvBOJscqe3EhKBC

slim moss
#

Thanks, give me a few minutes

#

So here's what's happening:

You create a subscription which charges the customer - $1.99
Then you update the subscription with a price that costs - $3.99 (which hasn't been charged yet)

When you update the subscription with proration - you get a credit (which is what you're seeing -$1.99)

So adding these up
$3.99 (for current month updated price) + $3.99 (for next cycle) - $1.99 (proration credit) = $5.99 (next invoice)

dull sonnet
#

so the custer pays 2$ + current sub rate next month

#

if the subscription he upgraded to is 3.99$ why would he pay 5.99 next month

#

is i because the changed amount isnt chatged yet/?

slim moss
#

yes

dull sonnet
#

how do i charge immediately in case of an upgrade and give credit in case of downgrade

slim moss
#

To bill a customer immediately for a change to a subscription on the same billing cycle, set proration_behavior to always_invoice.

#

did that work?

dull sonnet
#

Yeah its working perfectly now, thank you

#

I see that stripe now support paypal, can you guild me how can someone link their paypal using setupIntent

slim moss
dull sonnet
#

Ok, so I need an EU Paypal account first