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

[14.x] Add ability to ignore incomplete payments #1524

Merged
merged 2 commits into from
Apr 7, 2023

Conversation

driesvints
Copy link
Member

Right now, it's not possible to create subscriptions without also automatically confirming them. It would be handy for apps where the frontend like Next.js etc handles the confirmation through Stripe.js for example without providing a payment method up front.

$subscription = $user->newSubscription('default', 'price_xxx')
    ->ignoreIncompletePayment()
    ->create();

I'm not 100% sure about the naming of ignoreIncompletePayment yet.

@taylorotwell taylorotwell merged commit 325c8f0 into 14.x Apr 7, 2023
6 checks passed
@taylorotwell taylorotwell deleted the ignore-incomplete-payment branch April 7, 2023 13:45
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