#shah_80546

1 messages ยท Page 1 of 1 (latest)

green oceanBOT
#

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.

cosmic kiln
#

Hi ๐Ÿ‘‹ you can't. You will need to use price_data to create a new Price adhoc for that, or create the new Price before creating your new Subscription.

finite needle
#

what all details you require to create a price_data

cosmic kiln
finite needle
#

but if i create a new price for this exisiting product will it update existing product with new price

#

meaning if i go in dashbard and see product will it show new price there too

cosmic kiln
#

Products can have many Prices associated with them, but I believe using price_data also sets the created Price to not be reusable. I would recommend trying it in testmode and see if it displays in the dashboard as you hope, we aren't as familiar with the dashboard side of these flows and primarily focus on helping with our API.

finite needle
#

ok thanks

#

how do i set subscription start as future date meaning subscription start from this date and its monthly and it run for a year

#

i can easliy set it through dashbaord but how can i do thru api

cosmic kiln
finite needle
#

where do i provide end date for example i want subscription to complete in one year from start date meaning let say i set start date to 18 jan 2024 then last invoice should be 18 dec 2024 meaning 12 months only

cosmic kiln
#

You likely don't want to set an end date on the Subscription as it's really tedious to do that well, instead you'll want to leave iterations set to 12, as shown in the sample, and then set end_behavior to cancel. I'm pretty sure those settings on the Subscription Schedule will do what you want, and would recommend using a Test Clock to see that behavior in your testmode and check it:
https://stripe.com/docs/billing/testing/test-clocks

finite needle
#

can i set payment setting and payment behavior in that api for example i want to use acss debit as payment for my subscription

cosmic kiln
#

Like you already have an ACSS Debit Payment Method for your Customer that you want to use?

finite needle
#

no once subscription is created he will setup acss_debit for that susbcription

green oceanBOT
cosmic kiln
#

No, as far as I'm aware you can't set Subscription specific details to accomplish that. You can likely accomplish that if you set collection_method to send_invoice and have ACSS Debit set up as an accepted payment method type via the Hosted Invoice Page, but I'm not getting the sense that's how you want to approach this.

finite needle
#

what is this then

cosmic kiln
#

Not a Subscription Schedule integration

finite needle
#

so whats difference between too meanin subscription and subscription schedule

cosmic kiln
#

Subscription Schedules are wrappers for Subscriptions, they're used to schedule future changes for Subscriptions.

finite needle
#

but i do not have any other future change then i want my subscription to start from a specific date rest is same

cosmic kiln
#

Well starting a Subscription in the future is one of the key use cases for using a Subscription Schedule

finite needle
#

ok if i want to start subscription from today then i use subscription api and if i want my subscription to start in any future date then i use scheudle is that what you are saying ?

cosmic kiln
#

Yup

finite needle
#

and you think you can use pre authroized debit as payment method for schedule correct?

cosmic kiln
#

Not sure offhand. I think if you already had one set up, it'd be easy. I'm a little fuzzy on whether they'd be able to create a new ACSS Payment Method, but it may depend on the flow you have built to collect those details. I would recommend starting to play around with Subscription Schedules in test mode and get a feel for them. You can create them inside of a Test Clock, where you're able to advance time, so you can see their full lifecycle and test exactly how they'll behave with the rest of your flow.

finite needle
#

ok one last question in case i am using subscription how do i set iteration meaning same flow start form today for 12 month montly

cosmic kiln
#

Subscriptions don't have iterations, that's a Subscription Schedule parameter.

They have cancel_at_period_end, which you don't want to use if you're setting them to cancel that far ahead.

Instead cancel_at is the best option:
https://stripe.com/docs/api/subscriptions/update#update_subscription-cancel_at
Make sure you test that, as using cancel_at will lead to prorations being added to the Subscription's final Invoice if you don't set it to cancel at exactly the end of the billing period.

finite needle
#

ok thanks

#

i am getting this error when i am trying to create a scheudule: Cannot read properties of undefined (reading 'payment_intent')

#

is payment intent mandatory before creating schedule

cosmic kiln
#

Subscriptions automatically create Invoices which automatically create Payment Intents.

#

Subscription Schedules automatically create Subscriptions which triggers the above chain.

finite needle
#

so any reason why it is throwing that error

cosmic kiln
#

Not without more context, do you have the ID of the request returning that error?

#

Is that error thrown after the request? My guess would be you're inspecting the created object, but aren't finding a Payment Intent because there isn't one yet for Subscription Schedules

finite needle
#

wired thing is it throws error but also create a subscription

weary inlet
#

๐Ÿ‘‹ stepping in for my teammate. Do you have a request ID and/or details about the error you're receiving?

finite needle
#

nops

#

can i setup payment intent for this subscription created

weary inlet
#

Sending one-off questions like this is making it hard to assist. Could you summarize where you're currently blocked?

finite needle
#

previous issue i have resolved it now going back to how do we setup acss debit as payment method for subscription schedule created is my original question

weary inlet
finite needle
#

but how do i provide that payment details in subscription meaning how does it know which payment it has to use for subscription

weary inlet
#

After you've created and confirmed the ACSS SetupIntent, you should be able to inspect the SetupIntent to pull out the ACSS PaymentMethod ID

finite needle
#

ok but how to add them in subscriptiion api calls meaning how to associate them with subscription

weary inlet
finite needle
#

ok let me try