#nash - Unexpected Error
1 messages · Page 1 of 1 (latest)
Hello! That request attaches a card (represented by the Token) to a Customer. When that happens Stripe validates the card, and that validation may fail, which produces this error.
Aha!
I should have read a little further in the docs.
I think I should be using 4000000000000341 for what I want.
You're using a really old API property in that request. card is undocumented and hasn't been recommended for a while. The closest analog, source, is also old enough that we don't recommend it anymore either, but the documentation for it explains the behavior: https://stripe.com/docs/api/customers/update#update_customer-source