Skip to content

start to implement checkout session API#648

Merged
alexmamonchik merged 2 commits into
stripe-ruby-mock:masterfrom
fauxparse:support_checkout_sessions
Dec 17, 2019
Merged

start to implement checkout session API#648
alexmamonchik merged 2 commits into
stripe-ruby-mock:masterfrom
fauxparse:support_checkout_sessions

Conversation

@fauxparse
Copy link
Copy Markdown
Contributor

This is a very basic start at implementing the checkout session API, just because I needed it in a project I'm working on and I didn't have much time. In particular, a lot of the existing tests failed when I ran them on my machine, and I didn't have much luck digging into why (I see that the build is also failing on master).

Happy to collaborate with someone to take this further, but this is as good a starting point as I can get for now (hopefully better than nothing!)

@chuckphillips
Copy link
Copy Markdown

@fauxparse Given that Checkout Sessions are generally used with Stripe Checkout and Stripe Webhooks, might you be able to support checkout.session.completed via StripeMock.mock_webhook_event in spec/fixtures/stripe_webhooks/?

@fauxparse
Copy link
Copy Markdown
Contributor Author

@fauxparse Given that Checkout Sessions are generally used with Stripe Checkout and Stripe Webhooks, might you be able to support checkout.session.completed via StripeMock.mock_webhook_event in spec/fixtures/stripe_webhooks/?

I'll see if I get some time...

@chuckphillips
Copy link
Copy Markdown

@fauxparse I just read that users can add their own fixture. I tested it and it works, so not critical to add.
https://github.com/rebelidealist/stripe-ruby-mock#customizing-webhooks

@alexmamonchik alexmamonchik merged commit d12621d into stripe-ruby-mock:master Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants