Closed jpranskaitis closed 5 years ago
Can you please fill out the issue template?
will that be ok ?
I see you're using a stripe token which is unfortunately deprecated in the new cashier. we only support the payment methods api.
So here you have support for that :). Please @deprecate
then.
yeah i see now, my code has a mix of old 7.0 and new 10.2 Cashier.
so just to be clear, payment setup logic is as follows:
am i correct ?
I think it's best that if you need support for older versions that you try a support channel, sorry.
I don't need support for old version. As per issue details Cashier version was 10.2. But i think you are right, i should get support there.
Description:
When 3D Secure is required on card user needs to be redirected to
cashier.payment
, which is all correct, but page requires to repeat card information for second time.Steps To Reproduce:
If the original blade is not changed you will get empty card form again.
Possible solution:
As per https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment-no-element
Workaround (might not be very secure, but...) is to pass the same payment method to the redirection route like this:
Publish blade files:
php artisan vendor:publish --tag="cashier-views"
Make the
cashier.payment
blade triggerthis.confirmPayment()
onmounted()
.And change
stripe.handleCardPayment
to:Also name on card should be passed on initial card charge attempt, cause
cashier.payment
blade will instantly ask for 3DS authentication.Now user is not forced to fill card info again.
All the page design changes and loading spinner is up to you.