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

createSetupIntent add customer stripe_id option #1545

Merged
merged 2 commits into from
Jul 4, 2023
Merged

createSetupIntent add customer stripe_id option #1545

merged 2 commits into from
Jul 4, 2023

Conversation

clementmas
Copy link
Contributor

Similarly to the creation of a PaymentIntent using the $user->pay() method, the $user->createSetupIntent() method should also create a SetupIntent attached to the user's Stripe Customer if it exists.

Otherwise, all Setup Intents are created as Stripe guest customers.

So this PR makes both methods for creating intents behave the same way.

@taylorotwell taylorotwell marked this pull request as draft June 23, 2023 13:23
@taylorotwell
Copy link
Member

Need @driesvints to review.

Copy link
Member

@driesvints driesvints left a comment

Choose a reason for hiding this comment

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

LGTM!

@driesvints driesvints marked this pull request as ready for review July 3, 2023 10:37
@taylorotwell taylorotwell merged commit 8b2d75b into laravel:14.x Jul 4, 2023
7 checks passed
@clementmas clementmas deleted the patch-1 branch July 5, 2023 01:46
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