#zhoucli-invoices

1 messages · Page 1 of 1 (latest)

lyric jackal
#

Hi there! If you sent the customer an invoice, then when the invoice URL expires and is accessed, the customer will be directed to a recovery page.

Invoice retention time should be indefinite as far as I know with Customer Portal.

Invoices are also indefinite.

dense basalt
#

Instead, Stripe redirects invoiced customers to a page that states that the URL has expired and to contact the merchant. This page also provides the merchant’s contact information.

#

Will the recovery page regenerates a link automatically?

lyric jackal
#

See down below that: If you sent an invoice through the Dashboard or API, any email recipients are automatically associated with that invoice. In this case, Stripe redirects the user to a recovery page where they can enter their email address to receive a new copy of the original email with non-expired links.

#

So it is dependent on what type of collection_method you are using.

#

As long as you are using send_invoice then they will get a prompt for their email to receive a new copy

dense basalt
#

What we are trying to do is just to embed the hosted_invoice_url link on our UI.

#

Is customer email a required thing then?

#

From my current testing, seems email isn't required to generate an invoice

#

And auto-collect the payment when there is a payment method on file

lyric jackal
#

Right that is the charge_automatically collection method

#

Which means they won't be prompted for the email recovery

#

For an expired link

dense basalt
#

Yes, that's what we intend to use. In such a case, if the invoice url expires, how can we re-generate a new url?

#

Should we just call GET invoice API again to fetch a new url?

lyric jackal
#

Yep

#

Exactly

dense basalt
#

😆 That's a simple answer then

#

Thank you!