You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
With fake_stripe and Stripe customer = Stripe::Customer.retrieve(id: 'customer-id-here') (no expand option) the customer.default_source returns a String (the id of the default payment source).
However with Stripe, but not fake_stripe customer = Stripe::Customer.retrieve(id: 'customer-id-here', expand: ['default_source]) (note the expand option) the customer.default_source returns the populated payment source object (not just the string id of the payment source). fake_stripe only returns the String id of the payment source.
The customer retrieve stub currently doesn't support Stripe's
expand: ['default_source']
option:With fake_stripe and Stripe
customer = Stripe::Customer.retrieve(id: 'customer-id-here')
(no expand option) thecustomer.default_source
returns a String (the id of the default payment source).However with Stripe, but not fake_stripe
customer = Stripe::Customer.retrieve(id: 'customer-id-here', expand: ['default_source])
(note the expand option) thecustomer.default_source
returns the populated payment source object (not just the string id of the payment source). fake_stripe only returns the String id of the payment source.(stripe-ruby-mock has a similar issue that may be useful stripe-ruby-mock/stripe-ruby-mock#109 )
The text was updated successfully, but these errors were encountered: