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

[10.0] Require Payment Method for charge method #697

Merged
merged 1 commit into from Jul 9, 2019

Conversation

driesvints
Copy link
Member

With Stripe's new Payment Method API, there's no way to set a default for single charges, only for invoices & billing purposes. Because of this requirement, it's best that the payment method is a required argument for the charge method.

$user->charge(1000, $paymentMethod);

I've chosen to add this as the second parameter which reads a little bit better imo.

With Stripe's new Payment Method API, there's no way to set a default for single charges, only for invoices & billing purposes. Because of this requirement, it's best that the payment method is a required argument for the charge method.
@driesvints driesvints changed the title Require Payment Method for charge method [10.0] Require Payment Method for charge method Jul 8, 2019
@taylorotwell taylorotwell merged commit c3ac1cb into master Jul 9, 2019
@driesvints driesvints deleted the require-payment-method-on-charge branch July 9, 2019 13:30
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

2 participants