![]() 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/Fac/Message/ |
<?php namespace Corals\Modules\Payment\Fac\Message; /** * FACPG2 Transaction Status Request * * Required parameters: * transactionId - corresponds to the merchant's transaction ID */ class StatusRequest extends AbstractRequest { /** * @var string; */ protected $requestName = 'TransactionStatusRequest'; /** * Validate and construct the data for the request * * @return array */ public function getData() { $this->validate('merchantId', 'merchantPassword', 'acquirerId', 'transactionId'); $data = [ 'AcquirerId' => $this->getAcquirerId(), 'MerchantId' => $this->getMerchantId(), 'Password' => $this->getMerchantPassword(), 'OrderNumber' => $this->getTransactionId() ]; return $data; } /** * Returns endpoint for authorize requests * * @return string Endpoint URL */ protected function getEndpoint() { return parent::getEndpoint() . 'TransactionStatus'; } /** * Return the transaction modification response object * * @param \SimpleXMLElement $xml Response xml object * * @return StatusResponse */ protected function newResponse($xml) { return new StatusResponse($this, $xml); } }