#Muhammad Awais - pay invoice

1 messages ยท Page 1 of 1 (latest)

minor wave
formal chasm
#

I have subscription.

#

I think i need to get it's payment intent id?

minor wave
#

Yep, the Subscription has a latest_invoice property and that invoice has a payment_intent

formal chasm
#

ok

formal chasm
#

What happens if subscription stays incomplete?

minor wave
#

So if the customer wants to subscribe again after that point, you will want to create a new Subscription object and have them pay the first invoice on the new subscription

formal chasm
#

what if it's renewing?

minor wave
#

Do you know how you want your integration to respond to missed payments?

formal chasm
minor wave
#

Those can certainly help prompt your customer to fix their CC details and make the payment. You can also set what status stripe changes the subscription to after our retries failed. I'm guessing you are having the subscription cancel automatically at that point?

formal chasm
#

I'm guessing you are having the subscription cancel automatically at that point?

I was not aware of this, Will check now thank you

formal chasm
#

Can we set both connect webhook and direct webhook at same url?

#

I mean I don't want to have two different configs.
I just want one webhook secret for both ends

vestal seal
#

๐Ÿ‘‹ that's technically possible but not recommended. the number of events you'll receive may be overwhelming and there isn't a single value in the event that can definitively tell you whether the event is related to connect or not

formal chasm
#

I think if event is from connect account then event will have account id in payload['account'] ?