Skip to content

Commit 37df2a7

Browse files
authored
Merge pull request #142 from rendom/master
Support redirect on status requires_source_action
2 parents fd459e0 + 80f3eae commit 37df2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/PaymentIntents/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function isCancelled()
138138
*/
139139
public function isRedirect()
140140
{
141-
if ($this->getStatus() === 'requires_action') {
141+
if ($this->getStatus() === 'requires_action' || $this->getStatus() === 'requires_source_action') {
142142
// Currently this gateway supports only manual confirmation, so any other
143143
// next action types pretty much mean a failed transaction for us.
144144
return (!empty($this->data['next_action']) && $this->data['next_action']['type'] === 'redirect_to_url');

0 commit comments

Comments
 (0)