With the new 3D Secure handling, Stripe no longer supports the source attribute but instead uses payment_methods. Old subscriptions still have the source attribute, so we should use that if it's available. However, when source is nil, the card can be found on payment_method_details.card instead.
With the new 3D Secure handling, Stripe no longer supports the
source
attribute but instead usespayment_methods
. Old subscriptions still have thesource
attribute, so we should use that if it's available. However, whensource
isnil
, the card can be found onpayment_method_details.card
instead.Example (stripped irrelevant properties):
I also synced the ruby version specified by the
Gemfile
with.ruby-version
.I can't get tests etc to run locally but it should be fine.