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

Jul 2017
Alexander Mamonchik
Jul 12 2017 01:13
@hoanewton Try this:
StripeMock.prepare_card_error(:card_declined, :create_customer_subscription)
@hoanewton or use Stripe::Subscription.create
Hoa Newton
Jul 12 2017 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:

       no implicit conversion of Symbol into Integer

Any help is very much appreciated!