Skip to content

Commit

Permalink
Merge pull request #142 from rendom/master
Browse files Browse the repository at this point in the history
Support redirect on status requires_source_action
  • Loading branch information
barryvdh committed Aug 31, 2019
2 parents fd459e0 + 80f3eae commit 37df2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/PaymentIntents/Response.php
Expand Up @@ -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');
Expand Down

0 comments on commit 37df2a7

Please sign in to comment.