-
Notifications
You must be signed in to change notification settings - Fork 168
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
base: master
Are you sure you want to change the base?
Better support for Dynamic 3D Secure workflow with Stripe Elements #156
Conversation
…h Client Secret and the `use_stripe_sdk` next action type.
if ($this->getConfirm()) { | ||
$this->validate('returnUrl'); | ||
if ($this->getConfirm() && $this->getReturnUrl()) { | ||
$data['return_url'] = $this->getReturnUrl(); | ||
} |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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?
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. |
@barryvdh any progress in merging this? |
This is regarding #152