#ge_orgejoseph27
1 messages · Page 1 of 1 (latest)
hello! I'm afraid that isn't possible, Subscriptions Schedules doesn't work that way. When the schedule starts, the subscription’s initial status will be active with an initial draft invoice that is scheduled to finalize in an hour. Depending on whether payment of the initial invoice is successful or not, the subscription will either stay active or transition to past_due.
Yes.. So How can we handle failed payments in these case?
If the customer payment got failed?
how would you like to handle it?
e.g do you want to mark the subscription as canceled? do you want to reach out to the customer?
Eg case the subscription payment fails and if we cancel these, the customers payment intent still exist right?
Do we have any doc to share handling subscriptions in subscription schedule in the case of failed payments?
We want to notify the customer when the payment fails and subscription payment retry from customer side.
Eg case the subscription payment fails and if we cancel these, the customers payment intent still exist right?
If you don't want the customer to be able to pay the invoice, you'll need to void the invoice
Do we have any doc to share handling subscriptions in subscription schedule in the case of failed payments?
Subscription Schedules allow you to schedule changes to the underlying subscription. Essentially, for what you can do to recover failed payments, you can take a look at this page : https://stripe.com/docs/billing/revenue-recovery
there are smart retries, and you can enable settings to send a payment failure email notification to the customer
Yesterday When I tested, I made the subscription cancelled and deleted the invoice related to this. Even though the customer was able to make payment with the email payment link received. And customer payed. Since the subscription was cancelled, no subscription got created and payment has taken to our account. how can we handle these cases
can you share the subscription id?
Yes..
si_P0n9RS3HLUGtZ5 - subscription item id
sub_1OClZBCQTcpcYTusOs6ydbKM - subscription ID
I don't see that you've deleted the invoice : https://dashboard-admin.stripe.com/invoices/in_1OClZBCQTcpcYTusrZTLKIlf. You tried, but the request failed as you can see in the Logs in that page. You can't delete invoices created by subscriptions. You need to void the Invoice
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You can't delete invoices created by subscriptions. You need to void the Invoice. - This is a new information.. Thanks..
Is these plan work
Creating a subscription schedule and subscription
if payment fails delete the subscription schedule and subscription
customer again starts from begining for the payment.
if that's the flow that you want to follow, that works
Again if subscription schedule is cancelled will it cancel the subscription there
yes, as mentioned in the API doc for https://stripe.com/docs/api/subscription_schedules/cancel : Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription).
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
`
subCrip, _ := sub.Get(
"subscription_id",
nil,
)
if subCrip.Schedule != nil {
_, _ = subschedule.Cancel(
subCrip.Schedule.ID,
nil,
)
}
// cancel all open invoices
in, _ := invoice.VoidInvoice(
subCrip.LatestInvoice.ID,
nil,
)
log.Println(in)
`
Will these logic work
i don't know, you should test it