#MarkoBoras

1 messages · Page 1 of 1 (latest)

orchid berryBOT
elfin smelt
#

?

hazy marlin
#

Hi, please give me a moment to check.

elfin smelt
#

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

hazy marlin
#

There's no specific event for that, you can configure the logic in your application to count it.

elfin smelt
#

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?

hazy marlin
#

Sorry, for delay, let me check.

elfin smelt
#

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

hazy marlin
#

We don't send emails in Test mode.

elfin smelt
#

aaaa

#

but on production email will go to

#

to customer email

#

right?

hazy marlin
#

Correct.

elfin smelt
#

ok

#

can I test this in test mode

#

?

rotund herald
#

👋

#

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

elfin smelt
#

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

rotund herald
#

Mostly depends. Most invoice fields are immutable after they are finalized.

#

Have you already ensured you can update the invoice as you desire?

elfin smelt
#

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

rotund herald
#

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.

elfin smelt
#

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
rotund herald
#

Yep that's what I'd do

elfin smelt
#

thanks