#Ricky-dunning-emails
1 messages · Page 1 of 1 (latest)
Hi there! Can you clarify a bit here? You don't want to send emails after the retries? So you just want to send one for the initial failure? Is that correct?
not quite, i do indeed what to send multiple reminder emails based on the charge.failed webhook.. but i asked stripe support and the charge.failed doesn't have a count as to the number of retries that have been made.. it would be ideal becuase my api would then say "we've made n attempts to charge your card but failed"
I see, thanks for clarifying.
Let me see if there is a workaround here
You may just have to track this yourself
Ah okay actually
yeah.. i could but that requires more coding haha.. thought this would be sent in the very charge.failed webhook, it would seem appropriate.. however strpie support did say they see value in it but cant guarantee when it would be implemented.
If you use invoice.payment_failed instead of charge.failed then you can examine the invoice object which will have attempt_count: https://stripe.com/docs/api/invoices/object#invoice_object-attempt_count
thanks for that. are they almost the same invoice failed and charge.failed?
for subscriptions.
Yep they will fire at the same time when a charge is attempted and fails for an invoice
ok i may use invoice.payment failed instead of charge.failed....
awesome... i just let stripe supprot know about this too.
👍
You said Can i embed the customer portal, instead of redirection to a hosted page? I have noticed webflow and some other developers being able to embed the customer portal in a iframe or some other way... (customers get confused when they are taken away from the primary domain name)
sorry will do here.. as this is a new subject.
No, you can't embed the Customer Portal. It requires a redirect.
Curious where you saw this done before?
i thought so.. here i have seen it done here: https://www.youtube.com/watch?v=OvHZ5pvMy88 -- you will notice the url at 5:45 that the url remains webflow.
billflow, claims to do the same thing :
https://www.billflow.io/customer-portal-embed
is this some sort of hackery
Yeah neither of those are the Stripe customer portal
Those are portals that are built via those plugins
ahhh...
okay gotcha... was hoping that the customer portal would eventually have a embedded option using a sdk or a external js, (similar to stripe elements)
im guessing even if i try to embedd it (iframe or other hackery) i will get cors errors and such.