Skip to content

Commit

Permalink
Fix return url in Stripe SCA payments with 3D Secure
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpilotti committed Oct 13, 2023
1 parent 9289acb commit 7f41038
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Services/PaymentGateway/StripeSCA.php
Expand Up @@ -78,6 +78,7 @@ public function completeTransaction($data)
$response = $paymentIntent->send();

if ($response->requiresConfirmation()) {
$intentData['returnUrl'] = $data['returnUrl'];
$confirmResponse = $this->gateway->confirm($intentData)->send();
if ($confirmResponse->isSuccessful()) {
$response = $this->gateway->capture($intentData)->send();
Expand Down

0 comments on commit 7f41038

Please sign in to comment.