Skip to content

Commit 087f3e2

Browse files
committed
Merge pull request #11 from mtudor/feature/get-status-from-response
Added a function to return the status code from a response.
2 parents 1fe974b + 17c0bc7 commit 087f3e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Message/Response.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ public function getTransactionReference()
5454
return json_encode($reference);
5555
}
5656

57+
public function getStatus()
58+
{
59+
return isset($this->data['Status']) ? $this->data['Status'] : null;
60+
}
61+
5762
public function getMessage()
5863
{
5964
return isset($this->data['StatusDetail']) ? $this->data['StatusDetail'] : null;

0 commit comments

Comments
 (0)