#mikil
1 messages · Page 1 of 1 (latest)
payment_behavior is not an option of the SubscriptionSchedule. It's also not clear how to expand the first phase and the payment intent for its latest invoice.
I don't think you can set the payment_behavior, but you can create a SubscriptionSchedule from an existing Subscription: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
But for latest_invoice you can use the subscription property on the Schedule: https://stripe.com/docs/api/subscription_schedules/object#subscription_schedule_object-subscription
'expand' => [ 'subscription.latest_invoice.payment_intent' ],
thanks, I'll check
Happy to help.