Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back failure if no payment method on confirm
I added the ability to add a payment method by ID on confirm here: https://github.com/adrienverge/localstripe/pull/ I removed validation that there was payment_method_data. Per review comment on that PR, common sense, and testing with the actual Stripe API, we should still return a 400 error if neither payment_method nor payment_method_data are supplied to the confirm request. So I added that and changed an old test case that seemed to be asserting a behavior unlike what Stripe actually does. This also addresses another review comment, I was resetting payment_method_types within the confirm handler. Upon testing, this is not what the real Stripe API does, so I removed that recent addition.
- Loading branch information