![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/Corals/modules/Payment/Vivawallet/Messages/ |
<?php namespace Corals\Modules\Payment\Vivawallet\Messages; use Corals\Modules\Payment\Common\Message\AbstractResponse; use Corals\Modules\Payment\Common\Message\RequestInterface; /** * Stripe Response. * * This is the response class for all Stripe requests. * * @see \Corals\Modules\Payment\Stripe\Gateway */ class Response extends AbstractResponse { /** * Request id * * @var string URL */ protected $requestId = null; /** * @var array */ protected $headers = []; public function __construct(RequestInterface $request, $data, $headers = []) { $this->request = $request; $this->data = $data; $this->headers = $headers; parent::__construct($request, $data); } /** * Is the transaction successful? * * @return bool */ public function isSuccessful() { return data_get($this->data, 'StatusId') == 'F'; } /** * Get the transaction reference. * * @return string|null */ public function getTransactionReference() { return data_get($this->data, 'TransactionId'); } }