#NEWJOSSY

1 messages ยท Page 1 of 1 (latest)

quartz sundialBOT
unkempt hedge
#

Hi there!

lucid ember
#

Hello )

unkempt hedge
#

Is your question about subscription payments?

lucid ember
#

Yep

unkempt hedge
lucid ember
#

Okay, what if i want to notify user if Payment Intent payment was not successful, currently using them in order to save their payment method

unkempt hedge
#

Can you give me more context on your current integration? How are you creating subscriptions?

lucid ember
#

Sorry, I can't ๐Ÿ˜ฆ Don't have access to the corporate account

#

Okay, in general, if user payment will not be successful. will payment_intent.payment_failed be triggered?

#

Because as I could saw, even payments for subscriptions have payment_intent Id. Something like: pi_3LzhkCJC6UDy0MXS159QuSb4

raven jolt
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

lucid ember
#

As I can see from stripe trigger invoice.payment_failed, payment_intent.payment_failed will be triggered

#

The last row on the screenshot

raven jolt
#

@lucid ember yes that's true, invoices use PaymentIntents in the background but as my colleague explained when dealing with Subscriptions/Invoices it's better to listen to the invoice.failed event since it will be triggered in regards to the Invoice itself and you will get the Invoice as the event object which is more useful to you

lucid ember
#

Ok, that's sounds great!)

#

But theoretically it is possible to use general payment_intent.payment_failed?

raven jolt
raven jolt
#

let me know if you need any more help