lib/stripe/card.rb in stripe-1.20.0 vs lib/stripe/card.rb in stripe-1.20.1

- old
+ new

@@ -6,10 +6,10 @@ def url if respond_to?(:recipient) "#{Recipient.url}/#{CGI.escape(recipient)}/cards/#{CGI.escape(id)}" elsif respond_to?(:customer) - "#{Customer.url}/#{CGI.escape(customer)}/cards/#{CGI.escape(id)}" + "#{Customer.url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}" end end def self.retrieve(id, opts=nil) raise NotImplementedError.new("Cards cannot be retrieved without a customer ID. Retrieve a card using customer.cards.retrieve('card_id')")