#sealsthadeal

1 messages · Page 1 of 1 (latest)

limpid meadowBOT
daring canopy
#

No, but it should include an Invoice ID, which you can tie back to a Subscription

wicked viper
#

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?

daring canopy
#

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

wicked viper
#

sorry for my ignorance brotha; would u do that from the customer dash?

limpid meadowBOT
daring canopy
#

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

wicked viper
#

got it!

daring canopy
#

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"

wicked viper
#

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->

daring canopy
#

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)

wicked viper
#

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

daring canopy
#

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

wicked viper
#

silly question: how do i expand it?

#

and thanks again

austere tendon
wicked viper
#

thanks, how would i use that from a webhook?

#

if even possible

austere tendon
#

You'd need to retrieve the object via the api and expand