public function __construct(SimpleXMLElement $xml, CardCaptureRequest $request)
 {
     parent::__construct($xml, $request);
     $this->url = (string) $xml->HpsTxn->hps_url;
     $this->sessionId = (string) $xml->HpsTxn->session_id;
     $this->transaction = (string) $xml->datacash_reference;
 }
 public function __construct(SimpleXMLElement $xml, Request $request)
 {
     parent::__construct($xml, $request);
     $cardTxn = $xml->CardTxn;
     $this->cardScheme = (string) $cardTxn->card_scheme;
     $this->country = (string) $cardTxn->country;
     $this->token = (string) $cardTxn->token;
     $this->acquirer = (string) $xml->acquirer;
     $this->transaction = (string) $xml->datacash_reference;
     $this->information = (string) $xml->information;
     $this->merchantId = (string) $xml->mid;
     if (isset($cardTxn->ThreeDSecure)) {
         $this->url = (string) $cardTxn->ThreeDSecure->acs_url;
         $this->pareqMessage = (string) $cardTxn->ThreeDSecure->pareq_message;
     }
 }
Esempio n. 3
0
 public function __construct(SimpleXMLElement $xml, QueryRequest $request)
 {
     parent::__construct($xml, $request);
     $this->succeed = $this->status === Status::SUCCESS && $this->reason === Reason::ACCEPTED;
 }