I'm using Stripe gem for my payment method. According to its documentation I did tried to retrieve the card which I added against a customer. Customer retrieval worked fine with
customer = Stripe::Customer.retrieve("cus_DWcUQOutnrAD4s")
but when I tried to retrieve card using
card = customer.sources.retrieve("card_1D5a3J2eZvKYlo2CDJ62mrSM")
It throws exception saying
NoMethodError: undefined method `sources' for < Stripe::Customer: 0x007faae89500c0>
I googled much but could not find even the question like that which made me thinking that I might be the only person facing this issue. I am sure that stripe is installed correctly because I am successfully adding customer, card and subscription but it is the retrieval of card which throws the error.