#snackdex
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- snackdex, 10 hours ago, 7 messages
- snackdex-prebilling-sub, 3 days ago, 40 messages
- snack-subscription-payment, 4 days ago, 6 messages
- snackdex, 5 days ago, 22 messages
Hi
If you are looking to collect a new payment method to pay the Invoice then you want to grab the Invoice's PaymentIntent's client_secret and pass that to your frontend to initialize Payment Sheet
ah ok. so i can just expand the payment_intent on the failed invoice?
Yep
awesome! and just wanted to make sure i was doing everything correctly, how would i know that a subscription failed payment?
currently i'm using the billing_reason to see if it is a subscription invoice that failed but i'm unsure if that is the correct way
Yeah that works, you can also just check if the subscription prop has a value on the Invoice object