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

Better support for Dynamic 3D Secure workflow with Stripe Elements #156

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fotomerchant
Copy link

This is regarding #152

@fotomerchant fotomerchant changed the title Return URL to be Optional when Confirming Payment Intent Better support for Dynamic 3D Secure workflow with Stripe Elements Sep 17, 2019
Comment on lines -351 to 355
if ($this->getConfirm()) {
$this->validate('returnUrl');
if ($this->getConfirm() && $this->getReturnUrl()) {
$data['return_url'] = $this->getReturnUrl();
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to write it like this?

if ($this->getReturnUrl()) {
    $data['confirm'] = 'true';
}

If you set return_url, then confirm should be true according to stripe docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-return_url . It's better to set it by auto, I think.

* $response->redirect();
* $response->redirect();
* } else if ($response->isStripeSDKAction()) {
* $client_secret = $response->getClientSecret();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be returned in response so client application (javascript etc) can use it.
Can you add comment about it here?

@barryvdh
Copy link
Member

Is this still required?

@JoshStaff
Copy link

JoshStaff commented Feb 5, 2021

Is this still required?

Yes. As it stands, you are unable to (easily)perform the 3DS flow without redirecting away from your site with this package.

@pajkho
Copy link

pajkho commented Aug 8, 2021

@barryvdh any progress in merging this?

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.

7 participants