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 support for save_payment_method on PaymentIntent #793

Merged
merged 1 commit into from
Feb 18, 2019

Conversation

remi-stripe
Copy link
Contributor

This fixes the issue where save_payment_method was not added for the latest API version

r? @ob-stripe
cc @stripe/api-libraries

Copy link
Contributor

@ob-stripe ob-stripe left a comment

Choose a reason for hiding this comment

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

LGTM save for the formatting error. Feel free to merge after fixing it.

paymentintent.go Outdated
Shipping *ShippingDetailsParams `form:"shipping"`
Source *string `form:"source"`
StatementDescriptor *string `form:"statement_descriptor"`
TransferData *PaymentIntentTransferDataParams `form:"transfer_data"`
TransferGroup *string `form:"transfer_group"`

// This property is considered deprecated. Prefer using SavePaymentMethod
SaveSourceToCustomer *bool `form:"save_source_to_customer"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Formatting is incorrect here.

@remi-stripe remi-stripe merged commit 1d34c59 into master Feb 18, 2019
@remi-stripe remi-stripe deleted the remi-fix-paymentintent branch February 18, 2019 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants