Skip to content

Commit

Permalink
Also handle "no such payment" error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksere authored and dechov committed May 12, 2021
1 parent 302d9e6 commit 587566c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/abstracts/abstract-wc-stripe-payment-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function is_no_such_source_error( $error ) {
return (
$error &&
'invalid_request_error' === $error->type &&
preg_match( '/No such source/i', $error->message )
preg_match( '/(No such source|No such payment)/i', $error->message )
);
}

Expand Down

0 comments on commit 587566c

Please sign in to comment.