#MarkoBoras
1 messages · Page 1 of 1 (latest)
?
Hi, please give me a moment to check.
There's invoice.payment_failed: https://stripe.com/docs/api/events/types#event_types-invoice.payment_failed
Okay but can I somehow get there
that 3rd retry has failed
if you understand me
I want to in the point when 3rd retry failed to send mail to user
There's no specific event for that, you can configure the logic in your application to count it.
okay
one more question
I want to send to users mail
I don't have in my app payment source management
they're doing that through checkout and customer portal
what link should I provide them to update their payment information?
Sorry, for delay, let me check.
You can share the link to the Customer Portal: https://stripe.com/docs/api/customer_portal/sessions/create
ok
can you check this please cus_NS6Vi1h277a1xq
I've created test clock customer
paid with good test card
then changed
advanced time
but I am not getting email for thta customer's email
We don't send emails in Test mode.
Correct.
👋
stepping in here as vanya needed to step away
You can't send emails programmatically in test mode
In the Dashboard there is a "send email" button that you can use to send the email and see what it would look like
okay
but in production I can?
I am asking this because I need to implement this flow
- Customer selects plan and goes to checkout to pay
- User pays successfully and I am sending in webhook request to Croatia's tax administration office to create fiscalized invoice. I have some data from that invoice that I need to put in stripe receipt.
- I update stripe receipt with some data
- Send pdf to customer's email
can I achieve that flow
Mostly depends. Most invoice fields are immutable after they are finalized.
Have you already ensured you can update the invoice as you desire?
no no I haven't
I didn't say last 2 steps correctly
- I create stripe receipt with some data from croatia's tax administration office
- Send pdf to customer's email
I want to create receipt after checkout payment goes good and I create fiscalized invoice in tax office
So the options here are either to create the receipt outside of Stripe, or you could create a one-off invoice with the necessary info you are talking about and then "mark it as paid" since it is associated with the already paid Checkout Session, and then send that invoice to your customer
But you can't modify the info on the Charge receipt here, no.
I am getting back from Croatia's tax administration office service some receipt in PDF but it doesn't look really good.I want to use Stripe's receipt with dynamic data that I provide.
So the way with which I can achieve it is:
- create through API one-off invoice with data that I need to insert, mark it as paid and associate it with previous checkout session where user has paid?
- send pdf to user-s email
Yep that's what I'd do
thanks