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

[12.x] Added ability to confirm payments that require action #982

Closed
wants to merge 2 commits into from

Conversation

mehrancodes
Copy link

@mehrancodes mehrancodes commented Aug 17, 2020

With this change, we're showing the card form only when it requires payment method and showing a confirm payment button when it requires action.
One other thing I have handled is the error code payment_intent_authentication_failure when the 3D confirmation fails. when it happens, the payment intent status switches to the require_payment_method so we need to show the card form. that's why I have needed to pass requiresPaymentMethod and requiresAction through the Controller so I can use them inside the Vue conditionally.
If you're aware of a cleaner solution please let me know I appreciate it.

Thanks!

Closes #971

@driesvints
Copy link
Member

@taylorotwell I'll review this when I get back on Monday.

@driesvints driesvints changed the title #971 Added ability to confirm payments that require action [12.x] Added ability to confirm payments that require action Aug 17, 2020
@driesvints
Copy link
Member

@mehrancodes @taylorotwell I'm gonna post pone this review for a bit until I've finished updating our libraries for Laravel 8. I'll check into this as soon as I can.

@mehrancodes
Copy link
Author

@driesvints btw I suppose this PR is something critical since it affects the Stripe every time we use this page.

@driesvints
Copy link
Member

@mehrancodes feel free to use a fork for now.

@driesvints
Copy link
Member

Opened a new PR but preserved your commits: #987

@driesvints driesvints closed this Aug 27, 2020
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.

Payment confirmation Page creates a new payment method for the customer on Stripe
2 participants