#shahriyar_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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
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)
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/?
yes
how do i charge immediately in case of an upgrade and give credit in case of downgrade
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?
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
Great!
PayPal is only supported for Stripe accounts in EU - we have a guide here: https://docs.stripe.com/payments/paypal/set-up-future-payments
Ok, so I need an EU Paypal account first