#bhaumik1665_api

1 messages ¡ Page 1 of 1 (latest)

potent ospreyBOT
plush ruinBOT
#

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.

potent ospreyBOT
#

👋 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/1242379130876596274

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

feral storm
ancient pendant
#

Hello @feral storm, I have already tried with Subscription Schedule, but its creates a new subscription and not add updates to the existing subscription.

one screenshot shows "Update scheduled" (Done manually from stripe dashboard)
one screenshot shows "Starts 17 Jun" (Done via Schedule::create() API)

I want to create Schedule that shows behaves same as Manual operation from stripe dashboard.

#

SubscriptionSchedule::create() -> This is creating subscription for the future date.

feral storm
ancient pendant
#

yes, if I add from_subscription its not allowing me to add phases.

and if I add only phases then its creating future date subscription.

potent ospreyBOT
boreal kettle
#

Hey! Taking over for my colleague. Let me catch up.

#

Have you tried to create a subscription schedule from an existing subscription

#

and then update the subscription to add a new phase ?

ancient pendant
#

you mean that first I create subscription schedule with from_subscription of existing subscription ID.

and then I update that newly created subscription schedule to add phases to it?

boreal kettle
#

yes

ancient pendant
#

could you give me one example of how I can add phases?

#

I'm using PHP SDK.

ancient pendant
boreal kettle
#

Yes you should be able,

#

Have you tried to make some tests ?

ancient pendant
#

trying.

plush ruinBOT
ancient pendant
#

I have one more question, when I use subscription::update for upgrades of quantities immediately.

when I use payment_behavior:default_incomplete and proration_behavior:always_invoice its creating invoice for prorated amount.

but the problem is that.

sometimes the invoice is incomplete and sometimes the invoice is complete. I dont understand why it happens.

it should stay fix (either incomplete or complete)

daring river
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

#

Could you please share IDs of both examples?

ancient pendant
#

example of complete and incomplete invoices?

#

what example you're taking?

daring river
#

Yes, Invoice IDs of both cases, in_xxx

ancient pendant
daring river
#

The first one was paid automatically using the customer balance, so the amount due was 0. Therefore it didn't have the PaymentIntent and was marked as paid immediately.

ancient pendant
#

can I make any configuration so that the update operation doesn't use customer balance and always create invoice + payment intent?

daring river
#

It allways applies automatically, unless you reset the customer balance.