#birdy247
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Let's chat here
I note customer is optional, but in this use case, can we assume that its somewhat mandatory
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yeah, IMO I'd create a customer object prior to creating the schedule. I've not seen them done any other way before
https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#installment-plans
so create customer
yup
attach to subscription_schedule
then how do we attach the payment method?
In a more typical subscription, we take the first invoice items payment intent I think
yup on a schedule, you'd still find a subscription object where you can locate the latest_invoice.payment_intent
I believe so, would recommend testing it out to be 100% certain
ok cool
and do these generate invoice likes subscriptions?
So we can expect invoice.xx webhooks?
Yea, so lets say the schedule has 6 iterations
presumably we would get webhooks each time an iterative payment is made
that's correct, yes.
sorry missed your question, do you mean if you receive invoice.paid you want to know if they came from a scheduled subscription?
yes
I don't think there's direct way but you can expand subscription object on invoice.paid event payload and look at schedule property of the subscription
https://stripe.com/docs/api/subscriptions/object#subscription_object-schedule
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
regular subscription wouldn't have a value ther