#esmowin

1 messages ยท Page 1 of 1 (latest)

slow willowBOT
arctic jay
#

Hi what are your questions?

edgy vigil
#

So, when I have a subscription with automated payments, let's say that the customer CC expires and the payment fails... I receive an "invoice.payment_failed" webhook, where I receive an invoice URL, like:
https://invoice.stripe.com/i/acct_1IM1OLAk7qSXSxUq/test_YWNjdF8xSU0xT0xBazdxU1hTeFVxLF9PRGhXN1NUOWdIaDJ0emhrNHdZVWM4U2RjaDZFa29nLDc5MjgyNzM20200xvRUGjcQ?s=ap

Currently, I'm sending that invoice URL to the customer, so they can pay the invoice, but I've noted that, even if they make a successful payment with a new and valid CC, that doesn't change the subscription "default_payment_method" with the new CC, so the next month (let's say this is a monthly subscription) the payment fails again because the attempt is made with the old CC

#

So I tried with a CS (Checkout Session) with mode "setup", sending the customer that URL so they can change the payment info, and that does change the subscription "default_payment_method"

#

But it doesn't pay right away the "payment_failed" invoice

#

Until the next Stripe automated retry

#

But then

#

I discovered you have this kind of URL:

#

If the customer fills that form with a valid CC:

  1. The last "payment_failed" invoive is paid right away
  2. The subscription "default_payment_method" is properly updated
#

So my question is:

#

Does any object received by webhooks have that URL?

#

Because THAT is the URL that I should send to my customer, to solve the problem once and for all

edgy vigil
arctic jay
#

Looking now

edgy vigil
#

It's in the email that you send, let me show you

arctic jay
#

Yeah that's in the email we send the customer about failed payments

#

So couldn't the customer just use that email and link?

edgy vigil
#

We weren't using your emails because we wanted to send our emails

arctic jay
#

Or do you want to just use your own flow and not use Stripe emails?

edgy vigil
#

Exactly

arctic jay
#

Ah I see

#

I think if you use your own emails, you can't use those billing recovery links. I think they come with using that email functionality

#

I'd have to confirm this though. Let me look if there's another way

edgy vigil
#

I was testing ways to solve this, so I tried activating your emails and then I discovered that the URL you send is different

edgy vigil
arctic jay
#

Ok not sure if this pays the payment_failed invoice right away, but recommend you test this out. Our customer portal has deep linking functionality, so you could create a customer portal link to send the customer directly to the payment_method_update flow: https://stripe.com/docs/customer-management/portal-deep-links. Again, not sure if this also pays the unpaid invoice off-hand, so recommend you test it out.

#

Let me know if that works. If not, I think you'll need to build your own recovery flow if you don't want to use our emails

#

That being said, you can customize the branding of our emails to match your site

edgy vigil
#

Checking

slow willowBOT
edgy vigil
#

Let me ask you something else

meager oracle
#

Hello! I'm taking over and catching up...

edgy vigil
#

Hi!

meager oracle
#

What's up? ๐Ÿ™‚

edgy vigil
#

Don't worry, it's not related with the previous question

#

My new question is

#

And I'm pretty sure the answer is "No", as for what I've been reading in the docs

#

Is there any way my customers, that have Connected Accounts (they make sales to their customers), can buy, for example, a Stripe "BBPOS WisePOS E", without having to go to their Stripe Dashboard? I mean, is it possible to make that purchase using the Stripe API?

#

Because, if that were possible, I could integrate the process into my platform, so they make that purchase without leaving it

meager oracle
#

I think we just did something regarding this, let me check...

edgy vigil
#

Let me see...

#

Wow, that seems exactly what I was asking for

#

Is this beta? Or can be used safely?

meager oracle
#

It's not in beta and can be used safely as far as I know.

edgy vigil
#

Gr8! And last but not least, starting on which API version is it available? I'm not finding that information

meager oracle
#

Our API versions are only for breaking changes. New features are available on all API versions.

edgy vigil
#

Oh, great

#

Thank you very much! ๐Ÿ™Œ

meager oracle
#

Happy to help!

#

I was also reading about the Subscription recovery link issue you were having, and I'm going to flag that as a feature request. It seems like that URL should show up on the Subscription when there's a failed payment, or something like that.

#

Done!

meager oracle