#sealsthadeal
1 messages · Page 1 of 1 (latest)
No, but it should include an Invoice ID, which you can tie back to a Subscription
damn Karbi u are on it!
any ideas how to fire that off from the dashboard @daring canopy ?
delete the payment method from the customer?
I think a better way to test it is by voiding an open Invoice
That should immediately cancel the underlying paymetn intent it's tied to
Ah I see what you're saying now - yeah what I'm saying wont' work since all those invoices are paid.
If you wanted to try it end to end you'd need to remove the default payment method from the customer, and then updating the subscription (maybe by changing the quantity or something + resetting the billing cycle anchor) to generate a new invoice
got it!
Once that invoice is created it won't be automatically paid so you can void it by clicking on the Invoice -> cligking More -> "Change Invoice Status"
im not sure that fired off as i thought
im pretty much just looking for subscription events that I should use to cancel/void the service on my end
maybe I should just account for 'payment_intent.payment_failed' and 'payment_intent.canceled' ?
and then I'm assuming I can grab what I need from StripeObj->invoice->subscription->metadata->
If you need to know about any payment failure then yes, you'd also need to account for 'payment_intent.payment_failed' . payment_intent.canceled is more for when you care about the invoice being voided/it can never be paid from that point on
And yes, you would be able to grab what you need from StripeObj->invoice->subscription->metadata-> (you'd need to re-retrive the event/payment intent and expand invoice.subscription to get it all in a single request since the event doesnt' expand it by default)
is there a API doc where I can see the default value response for StripeObj->invoice->subscription ?
I genuinely appreciate your help and timely responses my man; sorry to go back and forth on this
I need to head out soon (codename_duchess can answer any other question you have).
But really quick for your latest question - you can quickly test this out by doing a API retrieve request of the payment intent w/ invoice.subscription expanded
silly question: how do i expand it?
do u mean reference/call the subscription separately using the response from invoice.subscription.id?
and thanks again
Hello. See: https://stripe.com/docs/expand
You'd need to retrieve the object via the api and expand