#mattwoberts

1 messages · Page 1 of 1 (latest)

still glenBOT
bitter briar
#

Hi there!

#

What is your question?

woven fern
#

Hello!

#

I've got this customer - cus_Iunj3sOHVX5fby

#

They've been successfully invoiced for the last few months

#

But this month - they have a failed payment. It's trying to use a card that's not the default for that customer, and I'm not sure why that is.

#

Additionaly, they added a card on the 15th Feb (presumably to pay the last invoice) and I don't know why that card wasn't tried for payment - why did stripe chose the 5685 card?

#

Hmm, hang on, I can see that the 5685 card is the one that the subscription is set to use. I wonder if each month it fails, and they end up putting the other card in to make the payment go through...

#

But when they do this - I'd expect that for future invoices, stripe will use that new card?

bitter briar
#

You mean this payment failure? https://dashboard.stripe.com/payments/pi_2MkVHHEHSdXPilfD1QziqebN
As mentioned in the dashbaord, this is simply the bank that declined the payment, so this has nothing to do with Stripe.

Tell the customer to try a different payment method, or they can contact their issuing bank for more information.

woven fern
#

But my point is that there are many more cards that the customer has on their account, and the previous invoice used a different one (9170), so why didn't / doesn't stripe attempt to use that card for this invoice - will it ONLY use the one that's set to the subscription?

bitter briar
#

Having a look...

woven fern
#

OK thanks.

#

Ok I've also had a look - I can see that the last invoice initially failed, and the customer then went into the hosted invoice page, and added a card in there - this event is that happening

#

evt_0MbhB3EHSdXPilfDbgoFY3ET

#

So then the payment for Feb goes through

#

But then in March, the invoice fails, because it's still trying to use the old card. So why didn't it try to use the new card that the customer had added back in Feb...

#

In tests that we've done in testing, if you have a failing card, and then you add a new card via the hosted invoice page when you get an invoice payment failure, that new card SHOULD then be used for future payment attempts....

bitter briar
#

In tests that we've done in testing, if you have a failing card, and then you add a new card via the hosted invoice page when you get an invoice payment failure, that new card SHOULD then be used for future payment attempts....
Interesting... I'll need to reproduce this.

woven fern
#

IT's something we made sure to test - I think that this is the expected behaviour isnt' it?

#

I think I'll re-test that this is all working on our tests too - to ensure that we've got the right assumptions in place here.

idle sinew
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

woven fern
#

Hi there

#

Just one thing I'm stuck on while testing this - I'm using test clocks, and I've got a customer into a failed invoice state, is there a way I can get the hosted invoice URL that this customer would have got, so I can test adding a card in there?

idle sinew
#

would you mind sharing the invoice ID?

woven fern
#

pi_2MmFMKEHSdXPilfD1gD0pnKW

#

in_0MkUKwEHSdXPilfDKttHNt2t

idle sinew
#

ok will take a look

woven fern
#

thanks

idle sinew
#

you have the hosted_invoice_url field on this invoice

#

which is where you can test how a customer might pay the invoice directly on our hosted invoice page

woven fern
#

AH yes thanks got it

idle sinew
#

no worries