Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back failure if no payment method on confirm #229

Conversation

bpcreech
Copy link

@bpcreech bpcreech commented Sep 25, 2024

I added the ability to add a payment method by ID on confirm here: #226

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.

I added the ability to add a payment method by ID on confirm here:
adrienverge#226

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.
@bpcreech
Copy link
Author

Oh, wow, I realize this is both correct and the total opposite of what the original comment was asking about.

Let me take this out of review and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant