Skip to content

Commit bab644e

Browse files
committed
Merge pull request #109 from aderuwe/patch-5
Documentation says 'void' for canceled, but in practice it's 'canceled'
2 parents e131e31 + 5b9bb1b commit bab644e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Omnipay/MultiSafepay/Message/CompletePurchaseResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ public function isUncleared()
5050
}
5151

5252
/**
53-
* Is the payment cancelled?
53+
* Is the payment canceled?
5454
*
5555
* @return boolean
5656
*/
57-
public function isCancelled()
57+
public function isCanceled()
5858
{
59-
return isset($this->data->ewallet->status) && 'void' === (string) $this->data->ewallet->status;
59+
return isset($this->data->ewallet->status) && 'canceled' === (string) $this->data->ewallet->status;
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)