From 80f3eae32f2efc63094f09c92c4e7be5d50e4a67 Mon Sep 17 00:00:00 2001 From: rendom Date: Tue, 27 Aug 2019 09:00:31 +0200 Subject: [PATCH] Support redirect on status requires_source_action --- src/Message/PaymentIntents/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Message/PaymentIntents/Response.php b/src/Message/PaymentIntents/Response.php index 6c485ec1..38d82a9c 100644 --- a/src/Message/PaymentIntents/Response.php +++ b/src/Message/PaymentIntents/Response.php @@ -138,7 +138,7 @@ public function isCancelled() */ public function isRedirect() { - if ($this->getStatus() === 'requires_action') { + if ($this->getStatus() === 'requires_action' || $this->getStatus() === 'requires_source_action') { // Currently this gateway supports only manual confirmation, so any other // next action types pretty much mean a failed transaction for us. return (!empty($this->data['next_action']) && $this->data['next_action']['type'] === 'redirect_to_url');