This repository has been archived on 2017-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
2017-02-19 10:19:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Omnipay\Inforbank\Message;
|
|
|
|
|
|
|
|
class CompletePurchaseResponse extends PurchaseResponse
|
|
|
|
{
|
|
|
|
public function isSuccessful()
|
|
|
|
{
|
2017-02-19 11:24:32 +00:00
|
|
|
return ($this->data['transaction']['status'] === "Success");
|
2017-02-19 10:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function isRedirect()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-02-19 11:02:56 +00:00
|
|
|
public function getTransaction()
|
2017-02-19 10:19:42 +00:00
|
|
|
{
|
2017-02-19 11:24:32 +00:00
|
|
|
return $this->data['transaction'];
|
2017-02-19 10:19:42 +00:00
|
|
|
}
|
|
|
|
}
|