#mattwoberts

1 messages ยท Page 1 of 1 (latest)

frail perchBOT
sterile isle
#

๐Ÿ‘‹ happy to help

zenith hemlock
#

Hi there.

#

So I've got a customer, who added a BACS payment method and removed their credit card one, on the 21st march. They were then billed on the 31st March and payment failed. Invoice in_0MpvReEHSdXPilfDWPmoPMst.

If I look into the payment intent (pi_2MpwPhEHSdXPilfD15imiFn1) I can see that it''s set to requires_payment_method - so it looks like no PM was associated with that payment intent.

#

Can you tell me why this might be, given they added the bacs PM 10 days previous?

#

Oh hang on - that bacs PM - it's not set as the default

#

How can that be - I thought one PM had to be the default payment method?

sterile isle
#

yes ecactly

#

sorry I was looking at the invoice to try to understand what happened

#

how did they change their payment method?

zenith hemlock
#

They used the customer portal

#

evt_0Mo743EHSdXPilfDAbqKwQ0k

#

That's them adding the BACS PM

#

And then they removed their card - evt_0Mo74HEHSdXPilfDpBb5AYXa

sterile isle
#

yes basically what happened here is that they removed the card details after adding the bacs PM

#

that's why the PM wasn't added as the default

zenith hemlock
#

I thought that the UI would stop you removing a PM when it's set to the default - it forces you to always have a default PM set?

sterile isle
#

I'm not sure that's the current behavior

#

anyways what you need to do now is to set the bacs PM as the customer's invoice_settings.default_payment_method so that when we retry the invoice it will use that PM for payment

zenith hemlock
#

Yeah will do, I'll experiment with the customer portal too, thanks

sterile isle
#

let me know if you need any more help

zenith hemlock
#

Doesn't seem to let me do what they did - see how it won't let me delete the card becauase I need a default PM

sterile isle
#

maybe it wasn't set as their default payment method

#

maybe it was only saved on the subscription

zenith hemlock
#

Yeah that could be true, thanks I'll leave you alone and do more digging here ๐Ÿ˜‰