#mattwoberts-hosted-invoice

1 messages ยท Page 1 of 1 (latest)

odd furnace
fading thorn
#

I know stripe have a stripe-hosted page, and that is sent to users via email when they are about to end their trial without payement...

odd furnace
fading thorn
#

We know about the customer portal, and it's an option, but we'd really like to get to the "stripe hosted page" too, so we can point users to it for their first payment method

#

does that make sense?

odd furnace
#

Sorry, but I'm not sure what hosted page you're referring to.

fading thorn
#

Ok I'll try to explain what we're after...

#

So for our subscriptions, we crete them in code when a customer signs up. So the subscription is started with a free trial, and no payment method collected.

#

The docs say: "Next, select the Link to a Stripe-hosted page option so the reminder email contains a link for the customer to add or update their payment details."

#

What we'd like to do is to also put that link on our app, to encourage the users to enter their payment details.

#

So that's the link I"m after, to that "stripe hosted page"

distant sphinx
fading thorn
#

How can it be a invoice url if the invoice hasn't yet been created?

#

This is a reminder email that's sent out a few days before the invoice is created

distant sphinx
#

Ah I now see that that section is actually about failed payments. Looking again

fading thorn
#

I'd say it's more about subscriptions that expire when no payment details have been entered... anyway thanks for this, it's causing us some confusion!

distant sphinx
fading thorn
#

Hmm. So are you saying that there isn't a page where we can send users that just collects payment details? I did know we can use the customer portal, but for us, we wanted a clear and focused page we could prompt these users to, to JUST allow them to enter card details. Once that was done, we'd open up the customer portal to them...

#

And it's just that the previous bit in those docs says it will send a reminder email when the trial is about to expire, and that the email will contain a link to update their payment details.. .I was hoping that was something I could use also...

distant sphinx
#

You can define a customer portal configuration such that the only thing the user can do on it is add their payment details. That is probably what our automated email sends. Otherwise you can send the user to a Checkout page in Setup mode which would also be a hosted page dedicated to collecting their payment details

#

Other than those I don't think we have further pages for adding a payment method like that

fading thorn
#

Hmm - that checkout page sounds good - would it work OK if the customer and subscription are already there? I presume so...

distant sphinx
#

It wouldn't really take them in to account so yes it should work.

fading thorn
#

Yeah - it's probably just making a setup intent and acctaching to the customer, so ๐Ÿคž

distant sphinx
#

Actually, in that vane, the Checkout Session would set up a card for future use but it wouldn't automatically set it as the default payment method on the Customer or Subscription

#

Exactly

fading thorn
#

Hm - would I need to do that via a webhook?

distant sphinx
#

Exactly. checkout.session.completed would probably be the most direct but any of the other setup intent events or payment_method.attached would work here

fading thorn
#

Gotcha. Glad we got that sorted in the end. Thanks for your help there, and I hope you have a good weekend!

distant sphinx
#

Of course, have a great weekend yourself!