#esmowin
1 messages ยท Page 1 of 1 (latest)
Hi what are your questions?
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:
- The last "payment_failed" invoive is paid right away
- 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
By webhooks or by any other means, maybe I can make an API call that return an object that contains that "billing recovery" URL
Yeah that's in the email we send the customer about failed payments
So couldn't the customer just use that email and link?
We weren't using your emails because we wanted to send our emails
Or do you want to just use your own flow and not use Stripe emails?
Exactly
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
I was testing ways to solve this, so I tried activating your emails and then I discovered that the URL you send is different
Gr8, let me know if you find something
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
Checking
Let me ask you something else
Hello! I'm taking over and catching up...
Hi!
What's up? ๐
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
I think we just did something regarding this, let me check...
Yeah, we have a Terminal Hardware Orders API: https://stripe.com/docs/api/terminal/hardware_orders
Let me see...
Wow, that seems exactly what I was asking for
Is this beta? Or can be used safely?
It's not in beta and can be used safely as far as I know.
Gr8! And last but not least, starting on which API version is it available? I'm not finding that information
Our API versions are only for breaking changes. New features are available on all API versions.
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!
Hey @edgy vigil, wanted to come back here and flag that I was wrong earlier about the Terminal Hardware Orders API; it is in beta, and you can request access by following the instructions here: https://site-admin.stripe.com/docs/terminal/fleet/placing-orders#use-the-hardware-orders-api