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] Provide findSetupIntent method #1505

Merged
merged 4 commits into from
Feb 23, 2023

Conversation

andycowan
Copy link
Contributor

The new Payment element requires a redirect to a new page after submitting the payment details, to enable the insertion of intermediate paymentMethod steps (for example bank pages etc.)

When the return_url is reaches, the setupIntent is supplied as a parameter, with the purpose of allowing the code to retrieve the setupIntent, to get the payment_method id.

This PR provides a findSetupIntent method on the billable entity, to enable retrieval of the setupIntent.

Test included.

This is described by @quantumwebco in issue #1491

fixes #1491

@driesvints driesvints changed the title fix: Provide findSetupIntent method [14.x] Provide findSetupIntent method Feb 23, 2023
@driesvints driesvints merged commit 48bf08f into laravel:14.x Feb 23, 2023
@driesvints
Copy link
Member

Thanks!

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.

no findSetupIntent method
2 participants