#benclum11
1 messages · Page 1 of 1 (latest)
Can you tell me more about what you are trying to control via webooks?
Each retry would cause an invoice.payment_failed and the cancellation of the subscription would cause a customer.subscription.deleted event
so instead of Stripe cancelling the subscription after all payment retries have failed, we want to be the ones to cancel the subscripton after all payment retries have failed
so we would disable that setting in the screenshot above and we would be the ones to cancel the subscription
Gotcha. In that case I think you can look at the next_payment_attempt property which should be set as long as Stripe plans to charge the invoice again https://stripe.com/docs/api/invoices/object#invoice_object-next_payment_attempt
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks!
one more minor thing, is there any way to change that setting in test mode only? from what I can tell if you change it on dashboard it affects both live AND testmode subscriptions.
so I'm not really sure how we would test these changes first in testmode without changing anything in livemode.
Unfortunately not, at the moment you would need to create a new account to test with and set the setting on that account. Definitely get that it is not ideal, but that is the situation at the moment