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 payment_method to confirm payment intent #625

Merged
merged 1 commit into from Oct 19, 2020

Conversation

markglenn
Copy link
Contributor

Allow confirming a payment intent using a payment method. This appears
to be the newest way of confirming a payment, deprecating the source
field.

I believe it's best to leave both options in for backwards compatibility

https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-payment_method

I also added in a cast_to_id call that appeared to be missing in the confirm function.

Allow confirming a payment intent using a payment method. This appears
to be the newest way of confirming a payment, deprecating the source
field.

I believe it's best to leave both options in for backwards compatibility

https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-payment_method
@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.117% when pulling 8360d27 on winestyr:master into c3e50bb on code-corps:master.

Copy link
Collaborator

@snewcomer snewcomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!

@snewcomer snewcomer merged commit e29c959 into beam-community:master Oct 19, 2020
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.

None yet

3 participants