#tyson

1 messages ยท Page 1 of 1 (latest)

brave gorgeBOT
digital light
#

I think you could create the Subscription and specify and cancel_at (to reflect the duration)

#

And you'd pass proration_behavior: 'always' to get a prorated Invoice for ~3 weeks on a monthly Price, for example

stark whale
#

Nice what are proration behavours and hwo do they work

digital light
#

It'll generate an Invoice to reflect the actual time of the Subscription (3 weeks) as opposed to the standard 1 month (assuming a monthly Price)

stark whale
#

I can't find the cancel_at date what are the paras is it date and never for the possible options

#

Does this all work the same for one off payments?

brave gorgeBOT
stark whale
#

Would it be easier to just do weekly on the subscription with the end date spesifyed?

#

for a 4 week sub

digital light
digital light
digital light
stark whale
#

So my connect accounts are football clubs and they have a 4 weeks course happening every weekend. they want their customers to be able to come say 3 weeks in and only pay for those 3 weeks. Would it be easier to jsut create a subscritpion that charges every week with a end date for the end of the course?

deft coyote
#

Hi! I'm taking over this thread.

#

If you create a weekly subscription, then the customer will be charged every week. Is this what you want?

stark whale
#

Would i then make a product with it set to week, with a end date. kinda

stark whale
deft coyote
#

Yes I already saw this message. That's why I said:

If you create a weekly subscription, then the customer will be charged every week. Is this what you want?

#

If charging the customer weekly is what you want, then yes that's a good option.

stark whale
#

nice ok and is the para week for the default_price_data[recurring][interval]

deft coyote
#

Sorry I don't understand your question. Can you try to rephrase? I have no idea what "para week" is.

stark whale
#

So for the default_price_data[recurring][interval] on the product for the subcritpion i will set that to week

#

not weekly

stark whale
#

Sweet, thanks for you time, one last question, i have to set up a the moment that we create a product and then use a checkout session set to subscription for the payment, this does all the heavy lifting on the creation process, am i able to set the cancel_at when creating the checkout session.

deft coyote
stark whale
#

able to set the cancel_at via the checkout session call?

#

can't see it in postman or docs

deft coyote
#

Indeed I cannot find this either. But you can always update the subscription after it was created to set the cancel_at.

stark whale
#

using the {{baseUrl}}/v1/subscriptions/:subscription_exposed_id Would the ID be the sub_ID i am guessing

deft coyote
#

Correct. For example you listen to the checkout.session.completed event, which will contain the subscription ID, and then you update the subscription with the cancel_at property.

stark whale
#

I can only see the cancel_at_period_end in postman does the cancel_at para still work

#

yess i see in docs

#

I really appreciate your help thank you!

deft coyote
#

Happy to help ๐Ÿ™‚