#loterak-ruby-mock
1 messages · Page 1 of 1 (latest)
loterak-ruby-mock
You could use stripe-mock https://github.com/stripe/stripe-mock/ though it will start a local server.
Otherwise you could look at https://github.com/stripe-ruby-mock/stripe-ruby-mock
Thank you @dusk cape! So there's no way to create a discount object with the regular Stripe gem??
well there is if you pass raw JSON yourself, but otherwise no
https://github.com/stripe/stripe-ruby/blob/master/test/stripe/bank_account_test.rb#L9-L12 like we do here for example
aaa that's what I was missing, the construct_from, i'll give that a try. Thank you!
let me know if that doesn't work for you!
that did it, thank youu!