for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class for response to Payment request
*
* @package php_EasyPay
* @version 1.1
* @author Dmitry Shovchko <[email protected]>
*/
namespace EasyPay\Provider31\Response;
use \EasyPay\Provider31\Response as Response;
final class Payment extends Response
{
* @var \DOMElement
protected $PaymentId;
* Payment constructor
* @param string $paymentid
public function __construct($paymentid)
parent::__construct();
$this->setElementValue('StatusCode', 0);
$this->setElementValue('StatusDetail', 'checked');
$this->create_PaymentId($paymentid);
}
* Create PaymentId node
public function create_PaymentId($paymentid)
if (isset($this->PaymentId)) return;
$this->PaymentId = $this->createElement('PaymentId', $paymentid);
$this->Response->appendChild($this->PaymentId);