-
Notifications
You must be signed in to change notification settings - Fork 682
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
Payment confirmation Page creates a new payment method for the customer on Stripe #971
Comments
I've forwarded this question to Stripe themselves on how we can prevent this. I'll get back to you once they give an answer. Thanks! |
So as it turns out we can re-use the payment method id of the payment intent to set the it as the payment method to be verified. We'll need to update the payment page to do that instead.
stripe.confirmCardPayment(
clientSecret,
{
payment_method: "pm_xxxx"
}
).then(function(x) { We'll need to also test the scenario where the card can't be verified and a new one needs to be added. |
Marking this as an enhancement because the current way still works but is a bit cumbersome. |
I have these scenarios handled inside our app, So I think I can help to put some time at the weekend to do the same thing here as well. It would be great if we use the user's card here as well since it would be easier for them to remember what card they're using and also they might not need to write their card again when just confirming the payment |
PR: #987 |
* #971 Added ability to confirm payments that require action * #971 updated Vue method names * indent * Cleanup and fix error * Fix language reference * Update payment.blade.php Co-authored-by: Mehran Rasoli <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
Description:
I tried to implement failed payments confirmation handler by adding the
![Screen Shot 2020-07-08 at 4 19 41 PM](https://user-images.githubusercontent.com/7046255/86931483-6804a980-c14d-11ea-8ebe-c6bbcd9f0c04.png)
CASHIER_PAYMENT_NOTIFICATION
env key. Everything seems to work fine except that it adds a new Payment Method for the customer EVERY time. wondering if this is something correct or not. shouldn't we just confirm the payment? or update the current payment method if needed?Steps To Reproduce:
Add a new subscription with this card 4000002760003184 which asks for 3D if you have it enabled. then Cashier sends a confirm payment email after the first invoice payment gets failed.
Things I have tried to fix it with no success
I have tried to replace this inside the Casher's resources/views/payment.blade.php:
With confirmCardPayment, but it still creates a new payment method
The text was updated successfully, but these errors were encountered: