These are chat archives for rebelidealist/stripe-ruby-mock

12th
Jul 2017
Alexander Mamonchik
@alexmamonchik
Jul 12 01:13
@hoanewton Try this:
StripeMock.prepare_card_error(:card_declined, :create_customer_subscription)
@hoanewton or use Stripe::Subscription.create
Hoa Newton
@hoanewton
Jul 12 13:26

thanks @alexmamonchik ! The :create_customer_subscription worked.
I've got another issue with expanding the charges list:

charges = Stripe::Charge.all(customer: stripe_id, expand: ['data.invoice'])

this line throw this error:

TypeError:
       no implicit conversion of Symbol into Integer

Any help is very much appreciated!