#lucas_reddy
1 messages · Page 1 of 1 (latest)
hi! what's the issue exactly?
okay for testing i add "start_date" just before 10 minutes in update subscription API
then i call subscriptionSchedule api then after 10 minutes you can see in image
its stripe invoice image
and what is the issue exactly? were you not expecting a payment failure and you want to know why the payment failed? something else?
i don't what happen can i share webhook call
i am also 🥹
what did you expect to see and what did you see happen instead?
what is the ID in_xxxx of the Invoice you're looking at?
i have two plans
const subscriptionSchedule = await stripe.subscriptionSchedules.create({
customer: customerID,
start_date: 1675770221,
end_behavior: "release",
phases: [
{
items: [
{ price: "price_1LSJlRBataYFhNKgp94qsExJ" },
{ price: "price_1LhvOxBataYFhNKgIvS7UsEu" },
],
},
],
});
here is my subscription update api
what did you expect to see and what did you see happen instead?
what is the ID in_xxxx of the Invoice you're looking at?
i want to update subscription but i have two plans so we update with stripe update subscription schedules https://stripe.com/docs/billing/subscriptions/subscription-schedules#updating
makes sense
After Updating subscription schedules
stripe shows "charged after 1 hour" after 1 hour payment failed
sorry my english is so weak
ok, so the question is you were you not expecting a payment failure and you want to know why the payment failed?
yes 🙂
what is the ID in_xxxx of the Invoice you're looking at?
it's because the customer does not have any default payment method set on them, so the subscription can not charge anything
so what can i do
yeah but that only makes it the default for that specific subscription. So you need to either set a default for the schedule you create, or set the Customer-level default, per the API calls linked above.
ok thank you